Skip to content

Commit

Permalink
Adjust beforeAll to be non-nullable in NormalizedProjectAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jul 22, 2024
1 parent ea72ef3 commit 50b25f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/core/src/types/modules/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type {
CleanupCallback,
StepRunner,
Canvas,
BeforeAll,
} from '@storybook/csf';

import type {
Expand Down Expand Up @@ -57,13 +58,14 @@ export type NamedOrDefaultProjectAnnotations<TRenderer extends Renderer = Render

export type NormalizedProjectAnnotations<TRenderer extends Renderer = Renderer> = Omit<
ProjectAnnotations<TRenderer>,
'decorators' | 'loaders' | 'runStep'
'decorators' | 'loaders' | 'runStep' | 'beforeAll'
> & {
argTypes?: StrictArgTypes;
globalTypes?: StrictGlobalTypes;
decorators?: DecoratorFunction<TRenderer>[];
loaders?: LoaderFunction<TRenderer>[];
runStep: StepRunner<TRenderer>;
beforeAll: BeforeAll;
};

export type NormalizedComponentAnnotations<TRenderer extends Renderer = Renderer> = Omit<
Expand Down

0 comments on commit 50b25f5

Please sign in to comment.