Skip to content

Commit 74d5eec

Browse files
authored
fix(types): missing types for nested sidebar group (close: #3127) (#3128)
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
1 parent 5e3a5a0 commit 74d5eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/types/src/theme-default.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export type SidebarItem4Group = {
8484
/**
8585
* Sidebar children.
8686
*/
87-
children?: Array<SidebarItem4Shortcut>;
87+
children?: Array<SidebarItem4Shortcut | SidebarItem4Group>;
8888
};
8989

9090
/**

0 commit comments

Comments
 (0)