import { moduleMetadata } from '@storybook/angular'; export type FunctionArg = T extends (...args: [infer U, ...any[]]) => any ? U : never; export type StorybookMetadata = FunctionArg;