From 8beab073c20fa1d6449e1fa3e9743433e50440bd Mon Sep 17 00:00:00 2001 From: chenhaoli Date: Sun, 26 Feb 2023 01:01:18 +0800 Subject: [PATCH] fix(types): missing types for `initialOpenGroupIndex` (close: #3129) --- 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. */