Skip to content

Commit

Permalink
docs: switch to interface expectation for AcornJsxParser per change…
Browse files Browse the repository at this point in the history
…s in acorn-jsx PR
  • Loading branch information
brettz9 committed May 9, 2022
1 parent 855af29 commit b4e7aa7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/lib/espree.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare function _default(): (Parser: typeof import('acorn-jsx').AcornJsxParser) => typeof EspreeParser;
declare function _default(): (Parser: import('acorn-jsx').AcornJsxParser) => typeof EspreeParser;
export default _default;
export class EspreeParser extends acorn.Parser {
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/espree.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion espree.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
/**
* @local
* @typedef {import('acorn')} acorn
* @typedef {typeof import('acorn-jsx').AcornJsxParser} AcornJsxParser
* @typedef {import('acorn-jsx').AcornJsxParser} AcornJsxParser
* @typedef {import('./lib/espree').EnhancedSyntaxError} EnhancedSyntaxError
* @typedef {typeof import('./lib/espree').EspreeParser} IEspreeParser
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/espree.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode");
* @local
* @typedef {import('acorn')} acorn
* @typedef {typeof import('acorn-jsx').tokTypes} tokTypesType
* @typedef {typeof import('acorn-jsx').AcornJsxParser} AcornJsxParser
* @typedef {import('acorn-jsx').AcornJsxParser} AcornJsxParser
* @typedef {import('../espree').ParserOptions} ParserOptions
*/

Expand Down

0 comments on commit b4e7aa7

Please sign in to comment.