mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
fix test
This commit is contained in:
parent
e4e11569b3
commit
32aac521a4
@ -94,7 +94,7 @@ export interface SubAPI {
|
||||
const removedOptions = ['enableShortcuts', 'theme', 'showRoots'];
|
||||
|
||||
function removeRemovedOptions<T extends Record<string, any> = Record<string, any>>(options?: T): T {
|
||||
if (!options) {
|
||||
if (!options || typeof options === 'string') {
|
||||
return options;
|
||||
}
|
||||
const result: T = { ...options } as T;
|
||||
|
Loading…
x
Reference in New Issue
Block a user