mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
fix: @storybook/addon-options: hierarchySeparator (#18253)
* fix: @storybook/addon-options: hierarchySeparator * Update storybook__addon-options-tests.ts * Update index.d.ts * Update storybook__addon-options-tests.ts
This commit is contained in:
committed by
Wesley Wigham
parent
322fd6daf1
commit
de042124bd
+2
-1
@@ -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
|
||||
@@ -13,6 +13,7 @@ export interface Options {
|
||||
showSearchBox?: boolean;
|
||||
downPanelInRight?: boolean;
|
||||
sortStoriesByKind?: boolean;
|
||||
hierarchySeparator?: RegExp | string;
|
||||
}
|
||||
|
||||
export function setOptions(options: Options): void;
|
||||
|
||||
@@ -9,4 +9,9 @@ setOptions({
|
||||
showSearchBox: false,
|
||||
downPanelInRight: false,
|
||||
sortStoriesByKind: false,
|
||||
hierarchySeparator: /\//,
|
||||
});
|
||||
|
||||
setOptions({
|
||||
hierarchySeparator: '.',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user