@storybook/csf 0.0.2--canary.49.9d84710.0 → 0.0.2--canary.49.258942b.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 +6 -6
  2. package/package.json +1 -1
package/dist/story.d.ts CHANGED
@@ -70,9 +70,9 @@ export declare type StoryContextForEnhancers<TFramework extends AnyFramework = A
70
70
  component?: (TFramework & {
71
71
  T: any;
72
72
  })['component'];
73
- subcomponents?: (TFramework & {
73
+ subcomponents?: Record<string, (TFramework & {
74
74
  T: any;
75
- })['component'];
75
+ })['component']>;
76
76
  parameters: Parameters;
77
77
  initialArgs: TArgs;
78
78
  argTypes: StrictArgTypes<TArgs>;
@@ -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.258942b.0",
4
4
  "description": "Component Story Format (CSF) utilities",
5
5
  "keywords": [
6
6
  "storybook",