mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix ESLint types loading for chevrotain
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createToken, Lexer } from '../../lib/chevrotain.min.mjs';
|
||||
import { createToken, Lexer } from '../../lib/chevrotain.js';
|
||||
|
||||
/** @enum {string} */
|
||||
const MODES = {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { CstParser } from './lib.js';
|
||||
import { CstParser } from '../../lib/chevrotain.js';
|
||||
import { MacroLexer } from './MacroLexer.js';
|
||||
|
||||
/**
|
||||
|
@@ -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 };
|
Reference in New Issue
Block a user