From 50b25f55303aac5e764521e6980c51bdd4184345 Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Mon, 22 Jul 2024 12:42:50 +0200 Subject: [PATCH] Adjust beforeAll to be non-nullable in NormalizedProjectAnnotations --- code/core/src/types/modules/story.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/core/src/types/modules/story.ts b/code/core/src/types/modules/story.ts index 69d10027bbe9..afe3edf6c6b0 100644 --- a/code/core/src/types/modules/story.ts +++ b/code/core/src/types/modules/story.ts @@ -6,6 +6,7 @@ import type { CleanupCallback, StepRunner, Canvas, + BeforeAll, } from '@storybook/csf'; import type { @@ -57,13 +58,14 @@ export type NamedOrDefaultProjectAnnotations = Omit< ProjectAnnotations, - 'decorators' | 'loaders' | 'runStep' + 'decorators' | 'loaders' | 'runStep' | 'beforeAll' > & { argTypes?: StrictArgTypes; globalTypes?: StrictGlobalTypes; decorators?: DecoratorFunction[]; loaders?: LoaderFunction[]; runStep: StepRunner; + beforeAll: BeforeAll; }; export type NormalizedComponentAnnotations = Omit<