Skip to content

Commit

Permalink
fix: better nav item types (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
zRains committed Jun 14, 2022
1 parent 0b6f25b commit 263607b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/default-theme.d.ts
Expand Up @@ -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 -------------------------------------------------------------------
Expand Down

0 comments on commit 263607b

Please sign in to comment.