Skip to content

Commit

Permalink
fix(types): missing types for initialOpenGroupIndex (close: #3129) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Feb 25, 2023
1 parent 970526f commit 9049d48
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/@vuepress/types/src/theme-default.ts
Expand Up @@ -81,6 +81,14 @@ export type SidebarItem4Group = {
* Sidebar's depth.
*/
sidebarDepth?: number;
/**
* By default the first subgroup is opened initially.
* You can change this using the `initialOpenGroupIndex`:
* Specify an index to open another subgroup or use `-1` for no open group.
*
* @default 0
*/
initialOpenGroupIndex?: number;
/**
* Sidebar children.
*/
Expand Down

0 comments on commit 9049d48

Please sign in to comment.