From 5d81fbdf31d4eafc02b3d5d58fd8767a59a52cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Maisse?= Date: Tue, 3 Nov 2020 20:17:19 +0100 Subject: [PATCH] fix(core): fix type of `addons` property in StorybookConfig --- lib/core/types/index.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/core/types/index.ts b/lib/core/types/index.ts index afc126a01fcc..ab0efa010b1f 100644 --- a/lib/core/types/index.ts +++ b/lib/core/types/index.ts @@ -11,9 +11,15 @@ export interface StorybookConfig { /** * Sets the addons you want to use with Storybook. * - * @example `['@storybook/addon-essentials']` + * @example `['@storybook/addon-essentials']` or `[{ name: '@storybook/addon-essentials', options: { backgrounds: false } }]` */ - addons?: string[]; + addons?: Array< + | string + | { + name: string; + options?: any; + } + >; /** * Tells Storybook where to find stories. * @@ -50,7 +56,7 @@ export interface TypescriptOptions { /** * Enables type checking within Storybook. * - * @defalt `false` + * @default `false` */ check: boolean; /**