From 9049d480ab176d0e53da3c1b859d28851703c13a Mon Sep 17 00:00:00 2001 From: ULIVZ Date: Sun, 26 Feb 2023 01:02:48 +0800 Subject: [PATCH] fix(types): missing types for `initialOpenGroupIndex` (close: #3129) (#3130) --- packages/@vuepress/types/src/theme-default.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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. */