Skip to content

Commit

Permalink
fix(core): fix type of addons property in StorybookConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanmaisse committed Nov 3, 2020
1 parent c6044eb commit 5d81fbd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/core/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -50,7 +56,7 @@ export interface TypescriptOptions {
/**
* Enables type checking within Storybook.
*
* @defalt `false`
* @default `false`
*/
check: boolean;
/**
Expand Down

0 comments on commit 5d81fbd

Please sign in to comment.