diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts index aec914be7fb2..ec0d69a79c23 100644 --- a/types/default-theme.d.ts +++ b/types/default-theme.d.ts @@ -86,9 +86,14 @@ export namespace DefaultTheme { activeMatch?: string } + export type NavItemChildren = { + text?: string + items: NavItemWithLink[] + } + export interface NavItemWithChildren { text?: string - items: NavItem[] + items: (NavItemChildren | NavItemWithLink)[] } // sidebar -------------------------------------------------------------------