Skip to content

Commit 0c109a3

Browse files
authored
chore(auto-nav-sidebar): update custom-link types (#2383)
1 parent d3cf796 commit 0c109a3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/core/src/node/auto-nav-sidebar/type.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type _CustomLinkMetaWithoutTypeField =
5252
link?: string;
5353
collapsible?: boolean;
5454
collapsed?: boolean;
55-
items?: _CustomLinkMetaWithoutTypeField[];
55+
items: _CustomLinkMetaWithoutTypeField[];
5656
};
5757

5858
export type CustomLinkMeta =
@@ -78,7 +78,7 @@ export type CustomLinkMeta =
7878
// DirSideMeta
7979
collapsible?: boolean;
8080
collapsed?: boolean;
81-
items?: _CustomLinkMetaWithoutTypeField[];
81+
items: _CustomLinkMetaWithoutTypeField[];
8282
};
8383

8484
export type SideMetaItem =

packages/document/docs/en/guide/basic/auto-nav-sidebar.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export type CustomLinkMeta =
139139
link?: string;
140140
collapsible?: boolean;
141141
collapsed?: boolean;
142-
items?: _CustomLinkMetaWithoutTypeField[];
142+
items: _CustomLinkMetaWithoutTypeField[];
143143
};
144144

145145
export type SideMetaItem =
@@ -308,7 +308,7 @@ export type CustomLinkMeta =
308308
link?: string;
309309
collapsible?: boolean;
310310
collapsed?: boolean;
311-
items?: _CustomLinkMetaWithoutTypeField[];
311+
items: _CustomLinkMetaWithoutTypeField[];
312312
};
313313
```
314314

packages/document/docs/zh/guide/basic/auto-nav-sidebar.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export type CustomLinkMeta =
140140
link?: string;
141141
collapsible?: boolean;
142142
collapsed?: boolean;
143-
items?: _CustomLinkMetaWithoutTypeField[];
143+
items: _CustomLinkMetaWithoutTypeField[];
144144
};
145145

146146
export type SideMetaItem =
@@ -311,7 +311,7 @@ export type CustomLinkMeta =
311311
link?: string;
312312
collapsible?: boolean;
313313
collapsed?: boolean;
314-
items?: _CustomLinkMetaWithoutTypeField[];
314+
items: _CustomLinkMetaWithoutTypeField[];
315315
};
316316
```
317317

0 commit comments

Comments
 (0)