227227###### ` handlers `
228228
229229Object mapping node types to functions handling the corresponding nodes
230- (` Record<string, Handle> ` ).
230+ (` Record<string, Handle> ` , optional ).
231231
232232Merged into the defaults.
233233See [ ` Handle ` ] [ handle ] .
@@ -250,22 +250,22 @@ Info passed around about the current state (TypeScript type).
250250
251251* ` schema ` ([ ` Schema ` ][schema])
252252 — current schema
253- * ` comments ` ( ` Array <Comment >` )
253+ * ` comments ` ( ` Array <EstreeComment >` )
254254 — list of estree comments
255- * ` esm ` ( ` Array <Node >` )
255+ * ` esm ` ( ` Array <EstreeNode >` )
256256 — list of top-level estree nodes
257- * ` handle ` ( ` (node : Node ) => JsxChild | void ` )
257+ * ` handle ` ( ` (node : HastNode ) => EstreeJsxChild | void ` )
258258 — transform a hast node to estree
259- * ` handle ` ( ` (node : Parent ) => JsxChild | void ` )
259+ * ` handle ` ( ` (node : HastParent ) => EstreeJsxChild | void ` )
260260 — transform children of a hast parent to estree
261261* ` patch ` ( ` (from : HastNode , to : EstreeNode ) => void ` )
262262 — take positional info from ` from ` (use ` inherit ` if you also want data)
263263* ` inherit ` ( ` (from : HastNode , to : EstreeNode ) => void ` )
264264 — take positional info and data from ` from ` (use ` patch ` if you don’t want
265265 data)
266- * ` createJsxAttributeName ` ( ` (name : string ) => JsxAttributeName ` )
266+ * ` createJsxAttributeName ` ( ` (name : string ) => EstreeJsxAttributeName ` )
267267 — create a JSX attribute name
268- * ` createJsxElementName ` ( ` (name : string ) => JsxElementName ` )
268+ * ` createJsxElementName ` ( ` (name : string ) => EstreeJsxElementName ` )
269269 — create a JSX attribute name
270270
271271## Types
0 commit comments