diff --git a/packages/@vuepress/types/src/theme-default.ts b/packages/@vuepress/types/src/theme-default.ts index bc55cd7446..9f0613d722 100644 --- a/packages/@vuepress/types/src/theme-default.ts +++ b/packages/@vuepress/types/src/theme-default.ts @@ -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. */