Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 74d5eec

Browse filesBrowse 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
Copy full SHA for 74d5eec

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: packages/@vuepress/types/src/theme-default.ts
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.