From fe95ffef3e79ba97a3cacde087fd68f13fe82b0b Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Mon, 2 Mar 2020 23:43:51 +1100 Subject: [PATCH] Typing fixes --- app/vue/src/client/preview/index.ts | 1 + lib/client-api/src/decorators.ts | 1 + lib/client-api/src/story_store.ts | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/vue/src/client/preview/index.ts b/app/vue/src/client/preview/index.ts index 4e515081a91..09b69690dbc 100644 --- a/app/vue/src/client/preview/index.ts +++ b/app/vue/src/client/preview/index.ts @@ -69,6 +69,7 @@ const defaultContext: StoryContext = { kind: 'unspecified', parameters: {}, args: {}, + globalArgs: {}, }; function decorateStory( diff --git a/lib/client-api/src/decorators.ts b/lib/client-api/src/decorators.ts index 7620af698ec..1547f64366f 100644 --- a/lib/client-api/src/decorators.ts +++ b/lib/client-api/src/decorators.ts @@ -11,6 +11,7 @@ const defaultContext: StoryContext = { kind: 'unspecified', parameters: {}, args: {}, + globalArgs: {}, }; export const defaultDecorateStory = (storyFn: StoryFn, decorators: DecoratorFunction[]) => diff --git a/lib/client-api/src/story_store.ts b/lib/client-api/src/story_store.ts index bd4cf36faa3..c84325c78f4 100644 --- a/lib/client-api/src/story_store.ts +++ b/lib/client-api/src/story_store.ts @@ -230,7 +230,12 @@ export default class StoryStore { const parameters = this._parameterEnhancers.reduce( (accumlatedParameters, enhancer) => ({ ...accumlatedParameters, - ...enhancer({ ...identification, parameters: accumlatedParameters, args: {} }), + ...enhancer({ + ...identification, + parameters: accumlatedParameters, + args: {}, + globalArgs: {}, + }), }), parametersBeforeEnhancement );