Skip to content

Commit

Permalink
fix(types): missing types for nested sidebar group (close: #3127) (#3128
Browse files Browse the repository at this point in the history
)

Currently we are allowed to config nested sub group<sup>[1]</sup>, but the types are missing:

[1] https://vuepress.vuejs.org/theme/default-theme-config.html#sidebar-groups
  • Loading branch information
ulivz committed Feb 25, 2023
1 parent 5e3a5a0 commit 74d5eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/types/src/theme-default.ts
Expand Up @@ -84,7 +84,7 @@ export type SidebarItem4Group = {
/**
* Sidebar children.
*/
children?: Array<SidebarItem4Shortcut>;
children?: Array<SidebarItem4Shortcut | SidebarItem4Group>;
};

/**
Expand Down

0 comments on commit 74d5eec

Please sign in to comment.