Skip to content

Commit 1c18d8e

Browse files
committed
Refactor some wording
1 parent 0c9dd6a commit 1c18d8e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ it.
227227
###### `handlers`
228228

229229
Object mapping node types to functions handling the corresponding nodes
230-
(`Record<string, Handle>`).
230+
(`Record<string, Handle>`, optional).
231231

232232
Merged into the defaults.
233233
See [`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

Comments
 (0)