@storybook/csf 0.0.2--canary.49.9d84710.0 → 0.0.2--canary.49.b089ae5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/story.d.ts +4 -4
  2. package/package.json +1 -1
package/dist/story.d.ts CHANGED
@@ -138,15 +138,15 @@ export interface ComponentAnnotations<TFramework extends AnyFramework = AnyFrame
138
138
  })['component'];
139
139
  subcomponents?: Record<string, TFramework['component']>;
140
140
  }
141
- export declare type StoryAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args, TArgsAnnotations = Partial<TArgs>> = BaseAnnotations<TFramework, TArgs> & {
141
+ export declare type StoryAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args, TRequiredArgs = Partial<TArgs>> = BaseAnnotations<TFramework, TArgs> & {
142
142
  name?: StoryName;
143
143
  storyName?: StoryName;
144
144
  play?: PlayFunction<TFramework, TArgs>;
145
145
  story?: Omit<StoryAnnotations<TFramework, TArgs>, 'story'>;
146
- } & ({} extends TArgsAnnotations ? {
147
- args?: TArgsAnnotations;
146
+ } & ({} extends TRequiredArgs ? {
147
+ args?: TRequiredArgs;
148
148
  } : {
149
- args: TArgsAnnotations;
149
+ args: TRequiredArgs;
150
150
  });
151
151
  export declare type LegacyAnnotatedStoryFn<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = StoryFn<TFramework, TArgs> & StoryAnnotations<TFramework, TArgs>;
152
152
  export declare type LegacyStoryAnnotationsOrFn<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = LegacyAnnotatedStoryFn<TFramework, TArgs> | StoryAnnotations<TFramework, TArgs>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/csf",
3
- "version": "0.0.2--canary.49.9d84710.0",
3
+ "version": "0.0.2--canary.49.b089ae5.0",
4
4
  "description": "Component Story Format (CSF) utilities",
5
5
  "keywords": [
6
6
  "storybook",