fix ESLint types loading for chevrotain

This commit is contained in:
Wolfsblvt
2024-07-17 04:44:52 +02:00
parent f63b875b76
commit 58481a6382
5 changed files with 2 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
import { createToken, Lexer } from '../../lib/chevrotain.min.mjs';
import { createToken, Lexer } from '../../lib/chevrotain.js';
/** @enum {string} */
const MODES = {

View File

@@ -1,4 +1,4 @@
import { CstParser } from './lib.js';
import { CstParser } from '../../lib/chevrotain.js';
import { MacroLexer } from './MacroLexer.js';
/**

View File

@@ -1,13 +0,0 @@
import { CstParser } from '../../lib/chevrotain.min.mjs';
/** @type {any} */
const AnyParser = CstParser;
/**
* @typedef {import('./chevrotain').CstParser} CstParserType
* @typedef {new (...args: any[]) => CstParserType} CstParserConstructor
* @type {CstParserConstructor}
*/
const Parser = AnyParser;
export { Parser as CstParser };