wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
30 lines (27 loc) • 575 B
text/typescript
import { Prop } from './prop';
import { Driver } from './driver';
// TODO: not yet full definition
export interface Metadata {
displayName: string;
props: {
[s: string]: Prop;
};
methods?: Method[];
description?: string;
readme?: string;
readmeApi?: string;
readmeTestkit?: string;
readmeAccessibility?: string;
drivers?: Driver[];
}
export interface Method {
name?: string;
docblock?: null | string;
modifiers?: string[];
params?: {
name?: 'string';
optional?: boolean;
type?: null | string;
}[];
returns?: null | string;
}