Skip to content

Commit

Permalink
Add project level tags
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Mar 29, 2024
1 parent aedde7f commit f469755
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ export type BaseAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args>
* Define a custom render function for the story(ies). If not passed, a default render function by the renderer will be used.
*/
render?: ArgsStoryFn<TRenderer, TArgs>;

/**
* Named tags for a story, used to filter stories in different contexts.
*/
tags?: Tag[];
};

export type ProjectAnnotations<
Expand Down Expand Up @@ -457,11 +462,6 @@ export interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TAr
* Function that is executed after the story is rendered.
*/
play?: PlayFunction<TRenderer, TArgs>;

/**
* Named tags for a story, used to filter stories in different contexts.
*/
tags?: Tag[];
}

export type StoryAnnotations<
Expand All @@ -484,11 +484,6 @@ export type StoryAnnotations<
*/
play?: PlayFunction<TRenderer, TArgs>;

/**
* Named tags for a story, used to filter stories in different contexts.
*/
tags?: Tag[];

/** @deprecated */
story?: Omit<StoryAnnotations<TRenderer, TArgs>, 'story'>;
// eslint-disable-next-line @typescript-eslint/ban-types
Expand Down

0 comments on commit f469755

Please sign in to comment.