Commit 0597b5b
authored
fix: expose missing NumberListNode from index export (#2010)
Context: I'm making a library called scrapbox-parser-to-markdown that takes the output of scrapbox-parser and converts it to markdown.
In this library, I need the `NumberListNode` type to type things correctly.
Since other nodes are already exposed from `index.ts`, I think it's more natural to expose `NumberListNode` as well.
See how I use `NumberListNode` in my codebase: https://github.com/0b5vr/scrapbox-parser-to-markdown/blob/bc7f7a9511c68f19aa5fef5e464cc1042912f57f/src/nodeToMarkdown.ts#L77
Workaround: `type NumberListNode = Extract<Node, { type: 'numberList' }>;` would work.1 parent 2b0c201 commit 0597b5b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments