|
1 | 1 | /** |
2 | | - * @typedef {import('hast').Nodes} Nodes |
3 | | - * @typedef {import('hast').Parents} Parents |
4 | | - * @typedef {import('hast').RootContent} RootContent |
5 | | - * |
6 | | - * @typedef {import('property-information').Schema} Schema |
7 | | - * |
8 | | - * @typedef {import('stringify-entities').Options} StringifyEntitiesOptions |
| 2 | + * @import {Nodes, Parents, RootContent} from 'hast' |
| 3 | + * @import {Schema} from 'property-information' |
| 4 | + * @import {Options as StringifyEntitiesOptions} from 'stringify-entities' |
9 | 5 | */ |
10 | 6 |
|
11 | 7 | /** |
|
77 | 73 | * Leave attributes unquoted if that results in less bytes (default: `false`). |
78 | 74 | * |
79 | 75 | * Not used in the SVG space. |
80 | | - * @property {Quote | null | undefined} [quote='"'] |
81 | | - * Preferred quote to use (default: `'"'`). |
82 | 76 | * @property {boolean | null | undefined} [quoteSmart=false] |
83 | 77 | * Use the other quote if that results in less bytes (default: `false`). |
| 78 | + * @property {Quote | null | undefined} [quote='"'] |
| 79 | + * Preferred quote to use (default: `'"'`). |
84 | 80 | * @property {Space | null | undefined} [space='html'] |
85 | 81 | * When an `<svg>` element is found in the HTML space, this package already |
86 | 82 | * automatically switches to and from the SVG space when entering and exiting |
|
138 | 134 | * |
139 | 135 | * @typedef State |
140 | 136 | * Info passed around about the current state. |
141 | | - * @property {(node: Nodes, index: number | undefined, parent: Parents | undefined) => string} one |
142 | | - * Serialize one node. |
143 | 137 | * @property {(node: Parents | undefined) => string} all |
144 | 138 | * Serialize the children of a parent node. |
145 | | - * @property {Settings} settings |
146 | | - * User configuration. |
147 | | - * @property {Schema} schema |
148 | | - * Current schema. |
149 | | - * @property {Quote} quote |
150 | | - * Preferred quote. |
151 | 139 | * @property {Quote} alternative |
152 | 140 | * Alternative quote. |
| 141 | + * @property {(node: Nodes, index: number | undefined, parent: Parents | undefined) => string} one |
| 142 | + * Serialize one node. |
| 143 | + * @property {Quote} quote |
| 144 | + * Preferred quote. |
| 145 | + * @property {Schema} schema |
| 146 | + * Current schema. |
| 147 | + * @property {Settings} settings |
| 148 | + * User configuration. |
153 | 149 | */ |
154 | 150 |
|
155 | 151 | import {htmlVoidElements} from 'html-void-elements' |
|
0 commit comments