Skip to content

Commit 12ef12d

Browse files
authored
fix(types): NavItem can only have either link or items (#2880)
1 parent 83270fe commit 12ef12d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: types/default-theme.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export namespace DefaultTheme {
154154
export interface NavItemWithLink {
155155
text: string
156156
link: string
157+
items?: never
157158

158159
/**
159160
* `activeMatch` is expected to be a regex string. We can't use actual

0 commit comments

Comments
 (0)