mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 22:39:29 +08:00
17 lines
No EOL
774 B
Text
17 lines
No EOL
774 B
Text
import { ParserOptions, TSESTree } from '@typescript-eslint/types';
|
|
import { ParserServices, visitorKeys } from '@typescript-eslint/typescript-estree';
|
|
import { ScopeManager } from '@typescript-eslint/scope-manager';
|
|
interface ParseForESLintResult {
|
|
ast: TSESTree.Program & {
|
|
range?: [number, number];
|
|
tokens?: TSESTree.Token[];
|
|
comments?: TSESTree.Comment[];
|
|
};
|
|
services: ParserServices;
|
|
visitorKeys: typeof visitorKeys;
|
|
scopeManager: ScopeManager;
|
|
}
|
|
declare function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast'];
|
|
declare function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult;
|
|
export { parse, parseForESLint, ParserOptions };
|
|
//# sourceMappingURL=parser.d.ts.map |