Skip to content

Commit

Permalink
Merge pull request #40 from wKich/6-4-new-types
Browse files Browse the repository at this point in the history
Revert "Play function can only be set at the story level"
  • Loading branch information
shilman authored Oct 22, 2022
2 parents e31af55 + 556fc9b commit 77954d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,12 @@ export interface ComponentAnnotations<TFramework extends AnyFramework = AnyFrame
* By defining them each component will have its tab in the args table.
*/
subcomponents?: Record<string, TFramework['component']>;
}

/**
* Function that is executed after the story is rendered.
*/
play?: PlayFunction<TFramework, TArgs>;
};

export type StoryAnnotations<
TFramework extends AnyFramework = AnyFramework,
Expand Down

0 comments on commit 77954d8

Please sign in to comment.