@storybook/csf 0.1.9--canary.91.75a24e6.0 → 0.1.9--canary.91.ad22273.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -251,7 +251,7 @@ type LoaderFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (cont
|
|
251
251
|
type Awaitable<T> = T | PromiseLike<T>;
|
252
252
|
type CleanupCallback = () => Awaitable<unknown>;
|
253
253
|
type BeforeEach<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContext<TRenderer, TArgs>) => Awaitable<CleanupCallback | void>;
|
254
|
-
interface
|
254
|
+
interface MountReturnType {
|
255
255
|
}
|
256
256
|
interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContextForEnhancers<TRenderer, TArgs>, Required<StoryContextUpdate<TArgs>> {
|
257
257
|
hooks: unknown;
|
@@ -261,7 +261,7 @@ interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Args> exte
|
|
261
261
|
abortSignal: AbortSignal;
|
262
262
|
canvasElement: TRenderer['canvasElement'];
|
263
263
|
step: StepFunction<TRenderer, TArgs>;
|
264
|
-
mount(): Promise<
|
264
|
+
mount(): Promise<MountReturnType>;
|
265
265
|
}
|
266
266
|
interface StoryContextForLoaders<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContext<TRenderer, TArgs> {
|
267
267
|
}
|
@@ -325,14 +325,14 @@ type BaseAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args> = {
|
|
325
325
|
*/
|
326
326
|
tags?: Tag[];
|
327
327
|
};
|
328
|
-
|
328
|
+
interface ProjectAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args> extends BaseAnnotations<TRenderer, TArgs> {
|
329
329
|
argsEnhancers?: ArgsEnhancer<TRenderer, Args>[];
|
330
330
|
argTypesEnhancers?: ArgTypesEnhancer<TRenderer, Args>[];
|
331
331
|
globals?: Globals;
|
332
332
|
globalTypes?: GlobalTypes;
|
333
333
|
applyDecorators?: DecoratorApplicator<TRenderer, Args>;
|
334
334
|
runStep?: StepRunner<TRenderer, TArgs>;
|
335
|
-
}
|
335
|
+
}
|
336
336
|
type StoryDescriptor$1 = string[] | RegExp;
|
337
337
|
interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args> extends BaseAnnotations<TRenderer, TArgs> {
|
338
338
|
/**
|
@@ -483,4 +483,4 @@ declare const parseKind: (kind: string, { rootSeparator, groupSeparator }: Separ
|
|
483
483
|
*/
|
484
484
|
declare const combineTags: (...tags: string[]) => string[];
|
485
485
|
|
486
|
-
export { AnnotatedStoryFn, AnyFramework, ArgTypes, ArgTypesEnhancer, Args, ArgsEnhancer, ArgsFromMeta, ArgsStoryFn, BaseAnnotations, BeforeEach, CleanupCallback, ComponentAnnotations, ComponentId, ComponentTitle, Conditional, DecoratorApplicator, DecoratorFunction, GlobalTypes, Globals, IncludeExcludeOptions, InputType, LegacyAnnotatedStoryFn, LegacyStoryAnnotationsOrFn, LegacyStoryFn, LoaderFunction,
|
486
|
+
export { AnnotatedStoryFn, AnyFramework, ArgTypes, ArgTypesEnhancer, Args, ArgsEnhancer, ArgsFromMeta, ArgsStoryFn, BaseAnnotations, BeforeEach, CleanupCallback, ComponentAnnotations, ComponentId, ComponentTitle, Conditional, DecoratorApplicator, DecoratorFunction, GlobalTypes, Globals, IncludeExcludeOptions, InputType, LegacyAnnotatedStoryFn, LegacyStoryAnnotationsOrFn, LegacyStoryFn, LoaderFunction, MountReturnType, Parameters, PartialStoryFn, PlayFunction, PlayFunctionContext, ProjectAnnotations, Renderer, SBArrayType, SBEnumType, SBIntersectionType, SBObjectType, SBOtherType, SBScalarType, SBType, SBUnionType, SeparatorOptions, StepFunction, StepLabel, StepRunner, StoryAnnotations, StoryAnnotationsOrFn, StoryContext, StoryContextForEnhancers, StoryContextForLoaders, StoryContextUpdate, StoryFn, StoryId, StoryIdentifier, StoryKind, StoryName, StrictArgTypes, StrictArgs, StrictGlobalTypes, StrictInputType, StrictParameters, Tag, ViewMode, combineTags, includeConditionalArg, isExportStory, parseKind, sanitize, storyNameFromExport, toId };
|