Skip to content

Commit ce76e1e

Browse files
pettinaripTylerAPfledderer
authored andcommitted
fix type in remark plugin
1 parent 9614e5b commit ce76e1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/rehype/remarkInferToc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { BlockContent, DefinitionContent, ListItem } from "mdast"
22
import { toc } from "mdast-util-toc"
3-
import type { Nodes } from "mdast-util-toc/lib"
3+
import type { List, Nodes } from "mdast-util-toc/lib"
44
import type { Plugin } from "unified"
55
import { visit } from "unist-util-visit"
66

@@ -13,7 +13,7 @@ const remarkInferToc: Plugin<[IRemarkTocOptions]> = (options) => {
1313
}
1414

1515
const processToC = (
16-
node: BlockContent | DefinitionContent | ListItem | null,
16+
node: BlockContent | DefinitionContent | ListItem | List | null,
1717
current: TocNodeType
1818
): TocNodeType => {
1919
if (!node) {

0 commit comments

Comments
 (0)