Skip to content

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

+8
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)