Skip to content

Commit

Permalink
Merge pull request #65 from ComponentDriven/kasper/decorator-with-int…
Browse files Browse the repository at this point in the history
…erface-bug

Turn Args interfaces into types when passed to decorators
  • Loading branch information
shilman authored Mar 31, 2023
2 parents 223b0c3 + ef100c4 commit 7706941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export type BaseAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args>
* Decorators defined in Meta will be applied to every story variation.
* @see [Decorators](https://storybook.js.org/docs/addons/introduction/#1-decorators)
*/
decorators?: DecoratorFunction<TRenderer, TArgs>[];
decorators?: DecoratorFunction<TRenderer, Simplify<TArgs>>[];

/**
* Custom metadata for a story.
Expand Down

0 comments on commit 7706941

Please sign in to comment.