diff --git a/README.md b/README.md index 4a54b80..6df590a 100644 --- a/README.md +++ b/README.md @@ -118,13 +118,14 @@ Both `toTree` and `parse` accept an options object as their second argument. All options are optional. -| Option | Type | Description | -| -------------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `filePath` | `string` | Used for language detection. | -| `tokens` | `boolean` | Generate a flat `ast.tokens` array. Required by ESLint; skipped by default so codemods and type-checkers pay nothing. | -| `templateOnly` | `boolean` | Parse the source as a raw Glimmer template. Use for `.hbs` files. | -| `parser` | `(placeholderJS: string) => { ast, ... }` | Use a custom JS/TS parser instead of the default oxc-parser. See [Custom parser](#custom-parser). | -| `visitors` | `VisitorMap`
or `(outerAst) => VisitorMap` | Callbacks fired on every node during traversal — JS/TS and Glimmer — in a single pass. See [Visitors](#visitors). | +| Option | Type | Description | +| ----------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `filePath` | `string` | Used for language detection. | +| `tokens` | `boolean` | Generate a flat `ast.tokens` array. Required by ESLint; skipped by default so codemods and type-checkers pay nothing. | +| `templateOnly` | `boolean` | Parse the source as a raw Glimmer template. Use for `.hbs` files. | +| `parser` | `(placeholderJS: string) => { ast, ... }` | Use a custom JS/TS parser instead of the default oxc-parser. See [Custom parser](#custom-parser). | +| `visitors` | `VisitorMap`
or `(outerAst) => VisitorMap` | Callbacks fired on every node during traversal — JS/TS and Glimmer — in a single pass. See [Visitors](#visitors). | +| `onTemplateError` | `(error, { range, contentRange, path }) => void` | Called when a `