Skip to content

Commit 0597b5b

Browse files
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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type {
1515
ImageNode,
1616
LinkNode,
1717
Node,
18+
NumberListNode,
1819
PlainNode,
1920
QuoteNode,
2021
StrongIconNode,

0 commit comments

Comments
 (0)