From ae37d7b4f394e4444ee980aea5d3d4f6b84aa114 Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Wed, 18 Sep 2019 15:36:59 -0700 Subject: [PATCH] match old API --- app/react/src/client/index.ts | 2 +- app/react/src/client/preview/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/react/src/client/index.ts b/app/react/src/client/index.ts index 1f775570010..7f09fd2d5ec 100644 --- a/app/react/src/client/index.ts +++ b/app/react/src/client/index.ts @@ -2,7 +2,7 @@ export { storiesOf, setAddon, addDecorator, - Decorator, + StoryDecorator, addParameters, configure, getStorybook, diff --git a/app/react/src/client/preview/index.ts b/app/react/src/client/preview/index.ts index 9b8e0478535..0c8fef00393 100644 --- a/app/react/src/client/preview/index.ts +++ b/app/react/src/client/preview/index.ts @@ -27,7 +27,7 @@ export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { export const configure: ClientApi['configure'] = (...args) => api.configure(...args, framework); export const addDecorator: ClientApi['addDecorator'] = api.clientApi.addDecorator; -export type Decorator = Parameters[0]; +export type StoryDecorator = Parameters[0]; export const addParameters: ClientApi['addParameters'] = api.clientApi.addParameters; export const clearDecorators: ClientApi['clearDecorators'] = api.clientApi.clearDecorators; export const setAddon: ClientApi['setAddon'] = api.clientApi.setAddon;