@storybook/csf 0.1.8--canary.40a5c7a.0 → 0.1.8--canary.92.6fb63cd.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -406,6 +406,10 @@ interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TArgs = Ar
|
|
406
406
|
* Function that is executed after the story is rendered.
|
407
407
|
*/
|
408
408
|
play?: PlayFunction<TRenderer, TArgs>;
|
409
|
+
/**
|
410
|
+
* Override the globals values for all stories in this component
|
411
|
+
*/
|
412
|
+
globals?: Globals;
|
409
413
|
}
|
410
414
|
type StoryAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args, TRequiredArgs = Partial<TArgs>> = BaseAnnotations<TRenderer, TArgs> & {
|
411
415
|
/**
|
@@ -420,6 +424,10 @@ type StoryAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args, TRequ
|
|
420
424
|
* Function that is executed after the story is rendered.
|
421
425
|
*/
|
422
426
|
play?: PlayFunction<TRenderer, TArgs>;
|
427
|
+
/**
|
428
|
+
* Override the globals values for this story
|
429
|
+
*/
|
430
|
+
globals?: Globals;
|
423
431
|
/** @deprecated */
|
424
432
|
story?: Omit<StoryAnnotations<TRenderer, TArgs>, 'story'>;
|
425
433
|
} & ({} extends TRequiredArgs ? {
|