Skip to content

Commit

Permalink
Merge pull request #15592 from storybookjs/feat/export-base-story-types
Browse files Browse the repository at this point in the history
Types: Export BaseStoryFn and  BaseStoryObject
  • Loading branch information
shilman committed Jul 15, 2021
2 parents e9d7d75 + 8155e2b commit 22be2a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/addons/src/types.ts
Expand Up @@ -273,14 +273,14 @@ export interface BaseMeta<ComponentType> {
subcomponents?: Record<string, ComponentType>;
}

type BaseStoryObject<Args, StoryFnReturnType> = {
export type BaseStoryObject<Args, StoryFnReturnType> = {
/**
* Override the display name in the UI
*/
storyName?: string;
};

type BaseStoryFn<Args, StoryFnReturnType> = {
export type BaseStoryFn<Args, StoryFnReturnType> = {
(args: Args, context: StoryContext): StoryFnReturnType;
} & BaseStoryObject<Args, StoryFnReturnType>;

Expand Down

0 comments on commit 22be2a4

Please sign in to comment.