@storybook/csf 0.1.4--canary.82.4a5a941.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 +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -251,8 +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 CleanupCallback = (
|
255
|
-
type BeforeEach<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContextForLoaders<TRenderer, TArgs>) => Awaitable<CleanupCallback>;
|
254
|
+
type CleanupCallback = () => Awaitable<unknown>;
|
255
|
+
type BeforeEach<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContextForLoaders<TRenderer, TArgs>) => Awaitable<CleanupCallback | void>;
|
256
256
|
interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContextForLoaders<TRenderer, TArgs> {
|
257
257
|
loaded: Record<string, any>;
|
258
258
|
abortSignal: AbortSignal;
|