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