fix: better nav item types (#714)

pull/779/head
zRains 2 years ago committed by GitHub
parent 0b6f25b988
commit 263607b279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,9 +86,14 @@ export namespace DefaultTheme {
activeMatch?: string activeMatch?: string
} }
export type NavItemChildren = {
text?: string
items: NavItemWithLink[]
}
export interface NavItemWithChildren { export interface NavItemWithChildren {
text?: string text?: string
items: NavItem[] items: (NavItemChildren | NavItemWithLink)[]
} }
// sidebar ------------------------------------------------------------------- // sidebar -------------------------------------------------------------------

Loading…
Cancel
Save