@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.
- package/dist/story.d.ts +4 -4
- 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,
|
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
|
147
|
-
args?:
|
146
|
+
} & ({} extends TRequiredArgs ? {
|
147
|
+
args?: TRequiredArgs;
|
148
148
|
} : {
|
149
|
-
args:
|
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>;
|