composeConfigs-62a04721.d.ts 849 B

1234567891011
  1. import { ModuleExports, Renderer, ProjectAnnotations } from '@storybook/types';
  2. declare function getField<TFieldType = any>(moduleExportList: ModuleExports[], field: string): TFieldType | TFieldType[];
  3. declare function getArrayField<TFieldType = any>(moduleExportList: ModuleExports[], field: string, options?: {
  4. reverseFileOrder?: boolean;
  5. }): TFieldType[];
  6. declare function getObjectField<TFieldType = Record<string, any>>(moduleExportList: ModuleExports[], field: string): TFieldType;
  7. declare function getSingletonField<TFieldType = any>(moduleExportList: ModuleExports[], field: string): TFieldType;
  8. declare function composeConfigs<TRenderer extends Renderer>(moduleExportList: ModuleExports[]): ProjectAnnotations<TRenderer>;
  9. export { getArrayField as a, getObjectField as b, composeConfigs as c, getSingletonField as d, getField as g };