Skip to content

Commit

Permalink
fix: @storybook/addon-options: hierarchySeparator (#18253)
Browse files Browse the repository at this point in the history
* fix: @storybook/addon-options: hierarchySeparator

* Update storybook__addon-options-tests.ts

* Update index.d.ts

* Update storybook__addon-options-tests.ts
  • Loading branch information
joscha authored and weswigham committed Aug 3, 2017
1 parent 322fd6d commit de04212
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/storybook__addon-options/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for @storybook/addon-options 3.0
// Type definitions for @storybook/addon-options 3.2
// Project: https://github.com/storybooks/storybook
// Definitions by: Joscha Feth <https://github.com/joscha>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Expand All @@ -13,6 +13,7 @@ export interface Options {
showSearchBox?: boolean;
downPanelInRight?: boolean;
sortStoriesByKind?: boolean;
hierarchySeparator?: RegExp | string;
}

export function setOptions(options: Options): void;
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ setOptions({
showSearchBox: false,
downPanelInRight: false,
sortStoriesByKind: false,
hierarchySeparator: /\//,
});

setOptions({
hierarchySeparator: '.',
});

0 comments on commit de04212

Please sign in to comment.