You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/contents.js
+7-12Lines changed: 7 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
* @typedef ContentsOptions
10
10
* @property {boolean} [tight=false] Whether to compile list-items tightly.
11
11
* @property {boolean} [ordered=false] Whether to compile list-items as an ordered list, otherwise they are unordered.
12
-
* @property {string} [prefix=null] Add a prefix to links to headings in the table of contents. Useful for example when later going from mdast to hast and sanitizing with `hast-util-sanitize`.
12
+
* @property {string|null} [prefix=null] Add a prefix to links to headings in the table of contents. Useful for example when later going from mdast to hast and sanitizing with `hast-util-sanitize`.
13
13
*/
14
14
15
15
importextendfrom'extend'
@@ -97,7 +97,7 @@ function insert(entry, parent, settings) {
97
97
entry.depth--
98
98
insert(
99
99
entry,
100
-
// @ts-ignore It’s a `list`, we just checked.
100
+
// @ts-expect-error It’s a `list`, we just checked.
0 commit comments