mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-20 18:17:51 +02:00
fix(content-docs): improve sidebar shorthand normalization error message (#6745)
This commit is contained in:
parent
9562a5d203
commit
2d93750caf
4 changed files with 74 additions and 25 deletions
|
@ -26,7 +26,7 @@ import type {DocMetadataBase, DocNavLink} from '../types';
|
|||
export function isCategoriesShorthand(
|
||||
item: SidebarItemConfig,
|
||||
): item is SidebarCategoriesShorthand {
|
||||
return typeof item !== 'string' && !item.type;
|
||||
return typeof item === 'object' && !item.type;
|
||||
}
|
||||
|
||||
export function transformSidebarItems(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue