Skip to content

Commit

Permalink
Merge pull request #25497 from nkabrown/csfv3-story-object
Browse files Browse the repository at this point in the history
CSF: Fix type hint for StoryObj type
  • Loading branch information
shilman authored Jan 8, 2024
2 parents 4335bf3 + 164c68c commit 6302cc6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/angular/src/client/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type Meta<TArgs = Args> = ComponentAnnotations<AngularRenderer, Transform
export type StoryFn<TArgs = Args> = AnnotatedStoryFn<AngularRenderer, TransformEventType<TArgs>>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/html/src/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type Meta<TArgs = Args> = ComponentAnnotations<HtmlRenderer, TArgs>;
export type StoryFn<TArgs = Args> = AnnotatedStoryFn<HtmlRenderer, TArgs>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/preact/src/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type Meta<TArgs = Args> = ComponentAnnotations<PreactRenderer, TArgs>;
export type StoryFn<TArgs = Args> = AnnotatedStoryFn<PreactRenderer, TArgs>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/src/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type StoryFn<TCmpOrArgs = Args> = [TCmpOrArgs] extends [ComponentType<any
: AnnotatedStoryFn<ReactRenderer, TCmpOrArgs>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/server/src/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type Meta<TArgs = Args> = ComponentAnnotations<ServerRenderer, TArgs>;
export type StoryFn<TArgs = Args> = AnnotatedStoryFn<ServerRenderer, TArgs>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/svelte/src/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type StoryFn<TCmpOrArgs = Args> = TCmpOrArgs extends SvelteComponentTyped
: AnnotatedStoryFn<SvelteRenderer, TCmpOrArgs>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/vue3/src/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type StoryFn<TCmpOrArgs = Args> = AnnotatedStoryFn<
>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/web-components/src/public-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type Meta<TArgs = Args> = ComponentAnnotations<WebComponentsRenderer, TAr
export type StoryFn<TArgs = Args> = AnnotatedStoryFn<WebComponentsRenderer, TArgs>;

/**
* Story function that represents a CSFv3 component example.
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
Expand Down

0 comments on commit 6302cc6

Please sign in to comment.