Typing fixes

This commit is contained in:
Tom Coleman 2020-03-02 23:43:51 +11:00
parent df17130995
commit fe95ffef3e
3 changed files with 8 additions and 1 deletions

View File

@ -69,6 +69,7 @@ const defaultContext: StoryContext = {
kind: 'unspecified',
parameters: {},
args: {},
globalArgs: {},
};
function decorateStory(

View File

@ -11,6 +11,7 @@ const defaultContext: StoryContext = {
kind: 'unspecified',
parameters: {},
args: {},
globalArgs: {},
};
export const defaultDecorateStory = (storyFn: StoryFn, decorators: DecoratorFunction[]) =>

View File

@ -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
);