Skip to content

Commit bf2fb73

Browse files
committed
perf: type node text as number
1 parent 5ce0e6f commit bf2fb73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type Tag = string | boolean;
1818
export type Attributes = Record<string, string>;
1919
export type Content = NodeText | Node[];
2020

21-
export type NodeText = string;
21+
export type NodeText = string | number;
2222
export type NodeTag = {
2323
tag?: Tag;
2424
attrs?: Attributes;

0 commit comments

Comments
 (0)