Skip to content

Commit ed0a6c7

Browse files
committed
docs: switch to interface expectation for AcornJsxParser per changes in acorn-jsx PR
1 parent 855af29 commit ed0a6c7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/lib/espree.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare function _default(): (Parser: typeof import('acorn-jsx').AcornJsxParser) => typeof EspreeParser;
1+
declare function _default(): (Parser: import('acorn-jsx').AcornJsxParser) => typeof EspreeParser;
22
export default _default;
33
export class EspreeParser extends acorn.Parser {
44
/**

dist/lib/espree.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

espree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
/**
9797
* @local
9898
* @typedef {import('acorn')} acorn
99-
* @typedef {typeof import('acorn-jsx').AcornJsxParser} AcornJsxParser
99+
* @typedef {new () => import('acorn-jsx').AcornJsxParser} AcornJsxParser
100100
* @typedef {import('./lib/espree').EnhancedSyntaxError} EnhancedSyntaxError
101101
* @typedef {typeof import('./lib/espree').EspreeParser} IEspreeParser
102102
*/

lib/espree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode");
3030
* @local
3131
* @typedef {import('acorn')} acorn
3232
* @typedef {typeof import('acorn-jsx').tokTypes} tokTypesType
33-
* @typedef {typeof import('acorn-jsx').AcornJsxParser} AcornJsxParser
33+
* @typedef {import('acorn-jsx').AcornJsxParser} AcornJsxParser
3434
* @typedef {import('../espree').ParserOptions} ParserOptions
3535
*/
3636

0 commit comments

Comments
 (0)