Skip to content

Commit

Permalink
Merge pull request #28671 from storybookjs/kasper/before-all
Browse files Browse the repository at this point in the history
Types: Adjust beforeAll to be non-nullable in NormalizedProjectAnnotations
  • Loading branch information
kasperpeulen authored Jul 22, 2024
2 parents ea72ef3 + 50b25f5 commit 7e55011
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 7e55011

Please sign in to comment.