mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
fix typing
This commit is contained in:
parent
9e07394ca8
commit
39102d3b83
@ -140,7 +140,7 @@ export const transformStoryIndexToStoriesHash = (
|
||||
|
||||
// First, split the title into a set of names, separated by '/' and trimmed.
|
||||
// @ts-expect-error (this is to support stories.json v2)
|
||||
const title = item.title || item.kind;
|
||||
const title: string = item.title || item.kind;
|
||||
const groups = title.trim().split(TITLE_PATH_SEPARATOR);
|
||||
const root = (!setShowRoots || showRoots) && groups.length > 1 ? [groups.shift()] : [];
|
||||
const names = [...root, ...groups];
|
||||
|
Loading…
x
Reference in New Issue
Block a user