From 40a5c7a5c53171f529e5e306cc3c918885cd6d3a Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 3 Jun 2024 11:56:01 +0800 Subject: [PATCH] Add project initialGlobals and deprecate globals --- src/story.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/story.ts b/src/story.ts index 7d4c97a..bec5ee7 100644 --- a/src/story.ts +++ b/src/story.ts @@ -390,7 +390,11 @@ export type ProjectAnnotations< > = BaseAnnotations & { argsEnhancers?: ArgsEnhancer[]; argTypesEnhancers?: ArgTypesEnhancer[]; + /** + * @deprecated Project `globals` renamed to `initiaGlobals` + */ globals?: Globals; + initialGlobals?: Globals; globalTypes?: GlobalTypes; applyDecorators?: DecoratorApplicator; runStep?: StepRunner;