@storybook/csf 0.0.2--canary.5b59926.0 → 0.0.2--canary.52.d2acbe4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +8 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -152,10 +152,6 @@ declare type DecoratorFunction<TFramework extends AnyFramework = AnyFramework, T
|
|
152
152
|
declare type DecoratorApplicator<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = (storyFn: LegacyStoryFn<TFramework, TArgs>, decorators: DecoratorFunction<TFramework, TArgs>[]) => LegacyStoryFn<TFramework, TArgs>;
|
153
153
|
declare type StepRunner<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = (label: StepLabel, play: PlayFunction<TFramework, TArgs>, context: PlayFunctionContext<TFramework, TArgs>) => Promise<void>;
|
154
154
|
declare type BaseAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = {
|
155
|
-
/**
|
156
|
-
* Named tags for a story, used to filter stories in different contexts.
|
157
|
-
*/
|
158
|
-
tags?: Tag[];
|
159
155
|
/**
|
160
156
|
* Wrapper components or Storybook decorators that wrap a story.
|
161
157
|
*
|
@@ -268,6 +264,10 @@ interface ComponentAnnotations<TFramework extends AnyFramework = AnyFramework, T
|
|
268
264
|
* Function that is executed after the story is rendered.
|
269
265
|
*/
|
270
266
|
play?: PlayFunction<TFramework, TArgs>;
|
267
|
+
/**
|
268
|
+
* Named tags for a story, used to filter stories in different contexts.
|
269
|
+
*/
|
270
|
+
tags?: Tag[];
|
271
271
|
}
|
272
272
|
declare type StoryAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args, TRequiredArgs = Partial<TArgs>> = BaseAnnotations<TFramework, TArgs> & {
|
273
273
|
/**
|
@@ -282,6 +282,10 @@ declare type StoryAnnotations<TFramework extends AnyFramework = AnyFramework, TA
|
|
282
282
|
* Function that is executed after the story is rendered.
|
283
283
|
*/
|
284
284
|
play?: PlayFunction<TFramework, TArgs>;
|
285
|
+
/**
|
286
|
+
* Named tags for a story, used to filter stories in different contexts.
|
287
|
+
*/
|
288
|
+
tags?: Tag[];
|
285
289
|
/** @deprecated */
|
286
290
|
story?: Omit<StoryAnnotations<TFramework, TArgs>, 'story'>;
|
287
291
|
} & ({} extends TRequiredArgs ? {
|