fix: nav type

pull/714/head
zRain 3 years ago
parent 26ee6f24aa
commit c64b9503d4
No known key found for this signature in database
GPG Key ID: AFEAF63F7ACA353C

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

Loading…
Cancel
Save