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

Sign up
Appearance settings

Commit 9049d48

Browse files
authored
fix(types): missing types for initialOpenGroupIndex (close: #3129) (#3130)
1 parent 970526f commit 9049d48

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ export type SidebarItem4Group = {
8181
* Sidebar's depth.
8282
*/
8383
sidebarDepth?: number;
84+
/**
85+
* By default the first subgroup is opened initially.
86+
* You can change this using the `initialOpenGroupIndex`:
87+
* Specify an index to open another subgroup or use `-1` for no open group.
88+
*
89+
* @default 0
90+
*/
91+
initialOpenGroupIndex?: number;
8492
/**
8593
* Sidebar children.
8694
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /