|
2 | 2 | * @typedef {import('unist').Node} Node
|
3 | 3 | * @typedef {import('unist').Parent} Parent
|
4 | 4 | * @typedef {import('unist').Literal} Literal
|
5 |
| - * @typedef {Object.<string, unknown>} Props |
6 |
| - * @typedef {Array.<Node>|string} ChildrenOrValue |
| 5 | + * @typedef {Record<string, unknown>} Props |
| 6 | + * @typedef {Array<Node>|string} ChildrenOrValue |
7 | 7 | *
|
8 |
| - * @typedef {(<T extends string, P extends Record<string, unknown>, C extends Node[]>(type: T, props: P, children: C) => {type: T, children: C} & P)} BuildParentWithProps |
| 8 | + * @typedef {(<T extends string, P extends Record<string, unknown>, C extends Array<Node>>(type: T, props: P, children: C) => {type: T, children: C} & P)} BuildParentWithProps |
9 | 9 | * @typedef {(<T extends string, P extends Record<string, unknown>>(type: T, props: P, value: string) => {type: T, value: string} & P)} BuildLiteralWithProps
|
10 | 10 | * @typedef {(<T extends string, P extends Record<string, unknown>>(type: T, props: P) => {type: T} & P)} BuildVoidWithProps
|
11 |
| - * @typedef {(<T extends string, C extends Node[]>(type: T, children: C) => {type: T, children: C})} BuildParent |
| 11 | + * @typedef {(<T extends string, C extends Array<Node>>(type: T, children: C) => {type: T, children: C})} BuildParent |
12 | 12 | * @typedef {(<T extends string>(type: T, value: string) => {type: T, value: string})} BuildLiteral
|
13 | 13 | * @typedef {(<T extends string>(type: T) => {type: T})} BuildVoid
|
14 | 14 | */
|
|
0 commit comments