@storybook/csf 0.1.4--canary.82.941efd8.0 → 0.1.4--canary.82.5e73744.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -251,7 +251,8 @@ interface StoryContextForLoaders<TRenderer extends Renderer = Renderer, TArgs =
|
|
251
251
|
}
|
252
252
|
type LoaderFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContextForLoaders<TRenderer, TArgs>) => Promise<Record<string, any> | void> | Record<string, any> | void;
|
253
253
|
type Awaitable<T> = T | PromiseLike<T>;
|
254
|
-
type
|
254
|
+
type CleanupCallback = () => Awaitable<unknown>;
|
255
|
+
type BeforeEach<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContextForLoaders<TRenderer, TArgs>) => Awaitable<CleanupCallback | void>;
|
255
256
|
interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContextForLoaders<TRenderer, TArgs> {
|
256
257
|
loaded: Record<string, any>;
|
257
258
|
abortSignal: AbortSignal;
|
@@ -476,4 +477,4 @@ declare const parseKind: (kind: string, { rootSeparator, groupSeparator }: Separ
|
|
476
477
|
groups: string[];
|
477
478
|
};
|
478
479
|
|
479
|
-
export { AnnotatedStoryFn, AnyFramework, ArgTypes, ArgTypesEnhancer, Args, ArgsEnhancer, ArgsFromMeta, ArgsStoryFn,
|
480
|
+
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, 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, includeConditionalArg, isExportStory, parseKind, sanitize, storyNameFromExport, toId };
|