From 5e73744b12f90d2caa1cda4149dbb6e4e442805a Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Thu, 11 Apr 2024 13:27:56 +0200 Subject: [PATCH] Change type --- src/story.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {