diff --git a/src/story.ts b/src/story.ts index e618bfe..222b3be 100644 --- a/src/story.ts +++ b/src/story.ts @@ -248,11 +248,12 @@ export type LoaderFunction context: StoryContextForLoaders ) => Promise | void> | Record | void; -export type Awaitable = T | PromiseLike; +type Awaitable = T | PromiseLike; +export type CleanupCallback = (() => Awaitable) | void; export type BeforeEach = ( context: StoryContextForLoaders -) => Awaitable<(() => Awaitable) | void>; +) => Awaitable; export interface StoryContext extends StoryContextForLoaders {