From b4e7aa7fa45444140f69f52e3f1e246cda68e584 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 9 May 2022 16:06:31 +0800 Subject: [PATCH] docs: switch to interface expectation for `AcornJsxParser` per changes in acorn-jsx PR --- dist/lib/espree.d.ts | 2 +- dist/lib/espree.d.ts.map | 2 +- espree.js | 2 +- lib/espree.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/lib/espree.d.ts b/dist/lib/espree.d.ts index e1f2868c..8e0a977b 100644 --- a/dist/lib/espree.d.ts +++ b/dist/lib/espree.d.ts @@ -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 { /** diff --git a/dist/lib/espree.d.ts.map b/dist/lib/espree.d.ts.map index 3be68e3d..50e3cc78 100644 --- a/dist/lib/espree.d.ts.map +++ b/dist/lib/espree.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"espree.d.ts","sourceRoot":"","sources":["../../tmp/lib/espree.js"],"names":[],"mappings":"AAgDe,sCAIA,cAAc,WAAW,EAAE,cAAc,KACvC,mBAAmB,CA+QnC;;AACD;IAEY;;;;OAIG;IACH,kBAHW,OAAO,WAAW,EAAE,aAAa,GAAG,IAAI,QACxC,MAAM,GAAG,MAAM,EAIjC;IAEO;;;OAGG;IACH,YAFa;QAAC,QAAQ,CAAC,EAAE;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,CAAC;YAAC,GAAG,CAAC,EAAE;gBAAC,KAAK,EAAE,OAAO,OAAO,EAAE,QAAQ,GAAG,SAAS,CAAC;gBAAC,GAAG,EAAE,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AAE,CAAA;KAAC,GAAG,OAAO,OAAO,EAAE,IAAI,CAI9V;IAsBO;;;;;;OAMG;IACH,sBALW,MAAM,WACN,MAAM,GAEJ,IAAI,CAIxB;IAYO;;;;;;;;OAQG;IACH,sBAHW,MAAM,GACJ,IAAI,CAIxB;CACJ;kCAzaY;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,GAAG,WAAW;+BAIpE;IAAC,iBAAiB,CAAC,EAAE,OAAO,OAAO,EAAE,SAAS,CAAA;CAAC,GAAG,cAAc,WAAW,EAAE,QAAQ"} \ No newline at end of file diff --git a/espree.js b/espree.js index 84683b8b..59840c62 100644 --- a/espree.js +++ b/espree.js @@ -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 */ diff --git a/lib/espree.js b/lib/espree.js index d0ff4ecc..340d668c 100644 --- a/lib/espree.js +++ b/lib/espree.js @@ -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 */