@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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -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 = (() => Awaitable<unknown>) | void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/csf",
3
- "version": "0.1.4--canary.82.4a5a941.0",
3
+ "version": "0.1.4--canary.82.5e73744.0",
4
4
  "description": "Component Story Format (CSF) utilities",
5
5
  "keywords": [
6
6
  "storybook",