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