@typescript-eslint/typescript-estree 6.0.0 → 7.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/_ts4.3/dist/ast-converter.d.ts +0 -9
- package/_ts4.3/dist/clear-caches.d.ts +0 -10
- package/_ts4.3/dist/convert-comments.d.ts +0 -11
- package/_ts4.3/dist/convert.d.ts +0 -142
- package/_ts4.3/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +0 -13
- package/_ts4.3/dist/create-program/createDefaultProgram.d.ts +0 -12
- package/_ts4.3/dist/create-program/createIsolatedProgram.d.ts +0 -9
- package/_ts4.3/dist/create-program/createProjectProgram.d.ts +0 -9
- package/_ts4.3/dist/create-program/createSourceFile.d.ts +0 -7
- package/_ts4.3/dist/create-program/describeFilePath.d.ts +0 -2
- package/_ts4.3/dist/create-program/getScriptKind.d.ts +0 -5
- package/_ts4.3/dist/create-program/getWatchProgramsForProjects.d.ts +0 -15
- package/_ts4.3/dist/create-program/shared.d.ts +0 -32
- package/_ts4.3/dist/create-program/useProvidedPrograms.d.ts +0 -13
- package/_ts4.3/dist/createParserServices.d.ts +0 -5
- package/_ts4.3/dist/getModifiers.d.ts +0 -4
- package/_ts4.3/dist/index.d.ts +0 -13
- package/_ts4.3/dist/jsx/xhtml-entities.d.ts +0 -2
- package/_ts4.3/dist/node-utils.d.ts +0 -254
- package/_ts4.3/dist/parseSettings/ExpiringCache.d.ts +0 -17
- package/_ts4.3/dist/parseSettings/createParseSettings.d.ts +0 -6
- package/_ts4.3/dist/parseSettings/getProjectConfigFiles.d.ts +0 -12
- package/_ts4.3/dist/parseSettings/index.d.ts +0 -117
- package/_ts4.3/dist/parseSettings/inferSingleRun.d.ts +0 -15
- package/_ts4.3/dist/parseSettings/resolveProjectList.d.ts +0 -19
- package/_ts4.3/dist/parseSettings/warnAboutTSVersion.d.ts +0 -3
- package/_ts4.3/dist/parser-options.d.ts +0 -184
- package/_ts4.3/dist/parser.d.ts +0 -20
- package/_ts4.3/dist/semantic-or-syntactic-errors.d.ts +0 -13
- package/_ts4.3/dist/simple-traverse.d.ts +0 -14
- package/_ts4.3/dist/source-files.d.ts +0 -4
- package/_ts4.3/dist/ts-estree/estree-to-ts-node-types.d.ts +0 -178
- package/_ts4.3/dist/ts-estree/index.d.ts +0 -4
- package/_ts4.3/dist/ts-estree/ts-nodes.d.ts +0 -20
- package/_ts4.3/dist/use-at-your-own-risk.d.ts +0 -7
- package/_ts4.3/dist/version-check.d.ts +0 -3
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
import type { CanonicalPath } from '../create-program/shared';
|
|
3
|
-
import type { TSESTree } from '../ts-estree';
|
|
4
|
-
import type { CacheLike } from './ExpiringCache';
|
|
5
|
-
type DebugModule = 'eslint' | 'typescript-eslint' | 'typescript';
|
|
6
|
-
/**
|
|
7
|
-
* Internal settings used by the parser to run on a file.
|
|
8
|
-
*/
|
|
9
|
-
export interface MutableParseSettings {
|
|
10
|
-
/**
|
|
11
|
-
* Prevents the parser from throwing an error if it receives an invalid AST from TypeScript.
|
|
12
|
-
*/
|
|
13
|
-
allowInvalidAST: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Code of the file being parsed, or raw source file containing it.
|
|
16
|
-
*/
|
|
17
|
-
code: ts.SourceFile | string;
|
|
18
|
-
/**
|
|
19
|
-
* Full text of the file being parsed.
|
|
20
|
-
*/
|
|
21
|
-
codeFullText: string;
|
|
22
|
-
/**
|
|
23
|
-
* Whether the `comment` parse option is enabled.
|
|
24
|
-
*/
|
|
25
|
-
comment: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* If the `comment` parse option is enabled, retrieved comments.
|
|
28
|
-
*/
|
|
29
|
-
comments: TSESTree.Comment[];
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated
|
|
32
|
-
* This is a legacy option that comes with severe performance penalties.
|
|
33
|
-
* Please do not use it.
|
|
34
|
-
*/
|
|
35
|
-
DEPRECATED__createDefaultProgram: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Which debug areas should be logged.
|
|
38
|
-
*/
|
|
39
|
-
debugLevel: Set<DebugModule>;
|
|
40
|
-
/**
|
|
41
|
-
* Whether to error if TypeScript reports a semantic or syntactic error diagnostic.
|
|
42
|
-
*/
|
|
43
|
-
errorOnTypeScriptSyntacticAndSemanticIssues: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Whether to error if an unknown AST node type is encountered.
|
|
46
|
-
*/
|
|
47
|
-
errorOnUnknownASTType: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Whether TS should use the source files for referenced projects instead of the compiled .d.ts files.
|
|
50
|
-
*
|
|
51
|
-
* @remarks
|
|
52
|
-
* This feature is not yet optimized, and is likely to cause OOMs for medium to large projects.
|
|
53
|
-
* This flag REQUIRES at least TS v3.9, otherwise it does nothing.
|
|
54
|
-
*/
|
|
55
|
-
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Any non-standard file extensions which will be parsed.
|
|
58
|
-
*/
|
|
59
|
-
extraFileExtensions: string[];
|
|
60
|
-
/**
|
|
61
|
-
* Path of the file being parsed.
|
|
62
|
-
*/
|
|
63
|
-
filePath: string;
|
|
64
|
-
/**
|
|
65
|
-
* Whether parsing of JSX is enabled.
|
|
66
|
-
*
|
|
67
|
-
* @remarks The applicable file extension is still required.
|
|
68
|
-
*/
|
|
69
|
-
jsx: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Whether to add `loc` information to each node.
|
|
72
|
-
*/
|
|
73
|
-
loc: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Log function, if not `console.log`.
|
|
76
|
-
*/
|
|
77
|
-
log: (message: string) => void;
|
|
78
|
-
/**
|
|
79
|
-
* Whether two-way AST node maps are preserved during the AST conversion process.
|
|
80
|
-
*/
|
|
81
|
-
preserveNodeMaps?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* One or more instances of TypeScript Program objects to be used for type information.
|
|
84
|
-
*/
|
|
85
|
-
programs: Iterable<ts.Program> | null;
|
|
86
|
-
/**
|
|
87
|
-
* Normalized paths to provided project paths.
|
|
88
|
-
*/
|
|
89
|
-
projects: readonly CanonicalPath[];
|
|
90
|
-
/**
|
|
91
|
-
* Whether to add the `range` property to AST nodes.
|
|
92
|
-
*/
|
|
93
|
-
range: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Whether this is part of a single run, rather than a long-running process.
|
|
96
|
-
*/
|
|
97
|
-
singleRun: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Whether deprecated AST properties should skip calling console.warn on accesses.
|
|
100
|
-
*/
|
|
101
|
-
suppressDeprecatedPropertyWarnings: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* If the `tokens` parse option is enabled, retrieved tokens.
|
|
104
|
-
*/
|
|
105
|
-
tokens: TSESTree.Token[] | null;
|
|
106
|
-
/**
|
|
107
|
-
* Caches searches for TSConfigs from project directories.
|
|
108
|
-
*/
|
|
109
|
-
tsconfigMatchCache: CacheLike<string, string>;
|
|
110
|
-
/**
|
|
111
|
-
* The absolute path to the root directory for all provided `project`s.
|
|
112
|
-
*/
|
|
113
|
-
tsconfigRootDir: string;
|
|
114
|
-
}
|
|
115
|
-
export type ParseSettings = Readonly<MutableParseSettings>;
|
|
116
|
-
export {};
|
|
117
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { TSESTreeOptions } from '../parser-options';
|
|
2
|
-
/**
|
|
3
|
-
* ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts,
|
|
4
|
-
* such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback
|
|
5
|
-
* on a file in an IDE).
|
|
6
|
-
*
|
|
7
|
-
* When typescript-eslint handles TypeScript Program management behind the scenes, this distinction
|
|
8
|
-
* is important because there is significant overhead to managing the so called Watch Programs
|
|
9
|
-
* needed for the long-running use-case. We therefore use the following logic to figure out which
|
|
10
|
-
* of these contexts applies to the current execution.
|
|
11
|
-
*
|
|
12
|
-
* @returns Whether this is part of a single run, rather than a long-running process.
|
|
13
|
-
*/
|
|
14
|
-
export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean;
|
|
15
|
-
//# sourceMappingURL=inferSingleRun.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CanonicalPath } from '../create-program/shared';
|
|
2
|
-
import type { TSESTreeOptions } from '../parser-options';
|
|
3
|
-
export declare function clearGlobCache(): void;
|
|
4
|
-
/**
|
|
5
|
-
* Normalizes, sanitizes, resolves and filters the provided project paths
|
|
6
|
-
*/
|
|
7
|
-
export declare function resolveProjectList(options: Readonly<{
|
|
8
|
-
cacheLifetime?: TSESTreeOptions['cacheLifetime'];
|
|
9
|
-
project: string[] | null;
|
|
10
|
-
projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList'];
|
|
11
|
-
singleRun: boolean;
|
|
12
|
-
tsconfigRootDir: string;
|
|
13
|
-
}>): readonly CanonicalPath[];
|
|
14
|
-
/**
|
|
15
|
-
* Exported for testing purposes only
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export declare function clearGlobResolutionCache(): void;
|
|
19
|
-
//# sourceMappingURL=resolveProjectList.d.ts.map
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import type { CacheDurationSeconds, DebugLevel } from '@typescript-eslint/types';
|
|
2
|
-
import type * as ts from 'typescript';
|
|
3
|
-
import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree';
|
|
4
|
-
interface ParseOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Prevents the parser from throwing an error if it receives an invalid AST from TypeScript.
|
|
7
|
-
* This case only usually occurs when attempting to lint invalid code.
|
|
8
|
-
*/
|
|
9
|
-
allowInvalidAST?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* create a top-level comments array containing all comments
|
|
12
|
-
*/
|
|
13
|
-
comment?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* An array of modules to turn explicit debugging on for.
|
|
16
|
-
* - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*`
|
|
17
|
-
* - 'eslint' is the same as setting the env var `DEBUG=eslint:*`
|
|
18
|
-
* - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions
|
|
19
|
-
*
|
|
20
|
-
* For convenience, also supports a boolean:
|
|
21
|
-
* - true === ['typescript-eslint']
|
|
22
|
-
* - false === []
|
|
23
|
-
*/
|
|
24
|
-
debugLevel?: DebugLevel;
|
|
25
|
-
/**
|
|
26
|
-
* Cause the parser to error if it encounters an unknown AST node type (useful for testing).
|
|
27
|
-
* This case only usually occurs when TypeScript releases new features.
|
|
28
|
-
*/
|
|
29
|
-
errorOnUnknownASTType?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Absolute (or relative to `cwd`) path to the file being parsed.
|
|
32
|
-
*/
|
|
33
|
-
filePath?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Enable parsing of JSX.
|
|
36
|
-
* For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html
|
|
37
|
-
*
|
|
38
|
-
* NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the
|
|
39
|
-
* TypeScript compiler has its own internal handling for known file extensions.
|
|
40
|
-
*
|
|
41
|
-
* For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx
|
|
42
|
-
*/
|
|
43
|
-
jsx?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Controls whether the `loc` information to each node.
|
|
46
|
-
* The `loc` property is an object which contains the exact line/column the node starts/ends on.
|
|
47
|
-
* This is similar to the `range` property, except it is line/column relative.
|
|
48
|
-
*/
|
|
49
|
-
loc?: boolean;
|
|
50
|
-
loggerFn?: false | ((message: string) => void);
|
|
51
|
-
/**
|
|
52
|
-
* Controls whether the `range` property is included on AST nodes.
|
|
53
|
-
* The `range` property is a [number, number] which indicates the start/end index of the node in the file contents.
|
|
54
|
-
* This is similar to the `loc` property, except this is the absolute index.
|
|
55
|
-
*/
|
|
56
|
-
range?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Set to true to create a top-level array containing all tokens from the file.
|
|
59
|
-
*/
|
|
60
|
-
tokens?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Whether deprecated AST properties should skip calling console.warn on accesses.
|
|
63
|
-
*/
|
|
64
|
-
suppressDeprecatedPropertyWarnings?: boolean;
|
|
65
|
-
}
|
|
66
|
-
interface ParseAndGenerateServicesOptions extends ParseOptions {
|
|
67
|
-
/**
|
|
68
|
-
* Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors.
|
|
69
|
-
*/
|
|
70
|
-
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* ***EXPERIMENTAL FLAG*** - Use this at your own risk.
|
|
73
|
-
*
|
|
74
|
-
* Causes TS to use the source files for referenced projects instead of the compiled .d.ts files.
|
|
75
|
-
* This feature is not yet optimized, and is likely to cause OOMs for medium to large projects.
|
|
76
|
-
*
|
|
77
|
-
* This flag REQUIRES at least TS v3.9, otherwise it does nothing.
|
|
78
|
-
*
|
|
79
|
-
* See: https://github.com/typescript-eslint/typescript-eslint/issues/2094
|
|
80
|
-
*/
|
|
81
|
-
EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* When `project` is provided, this controls the non-standard file extensions which will be parsed.
|
|
84
|
-
* It accepts an array of file extensions, each preceded by a `.`.
|
|
85
|
-
*/
|
|
86
|
-
extraFileExtensions?: string[];
|
|
87
|
-
/**
|
|
88
|
-
* Absolute (or relative to `tsconfigRootDir`) path to the file being parsed.
|
|
89
|
-
* When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache.
|
|
90
|
-
*/
|
|
91
|
-
filePath?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Allows the user to control whether or not two-way AST node maps are preserved
|
|
94
|
-
* during the AST conversion process.
|
|
95
|
-
*
|
|
96
|
-
* By default: the AST node maps are NOT preserved, unless `project` has been specified,
|
|
97
|
-
* in which case the maps are made available on the returned `parserServices`.
|
|
98
|
-
*
|
|
99
|
-
* NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected,
|
|
100
|
-
* regardless of whether or not `project` is in use.
|
|
101
|
-
*/
|
|
102
|
-
preserveNodeMaps?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s),
|
|
105
|
-
* or `true` to find the nearest tsconfig.json to the file.
|
|
106
|
-
* If this is provided, type information will be returned.
|
|
107
|
-
*/
|
|
108
|
-
project?: string[] | string | true | null;
|
|
109
|
-
/**
|
|
110
|
-
* If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from
|
|
111
|
-
* being matched by the globs.
|
|
112
|
-
* This accepts an array of globs to ignore.
|
|
113
|
-
*
|
|
114
|
-
* By default, this is set to ["**\/node_modules/**"]
|
|
115
|
-
*/
|
|
116
|
-
projectFolderIgnoreList?: string[];
|
|
117
|
-
/**
|
|
118
|
-
* The absolute path to the root directory for all provided `project`s.
|
|
119
|
-
*/
|
|
120
|
-
tsconfigRootDir?: string;
|
|
121
|
-
/**
|
|
122
|
-
* An array of one or more instances of TypeScript Program objects to be used for type information.
|
|
123
|
-
* This overrides any program or programs that would have been computed from the `project` option.
|
|
124
|
-
* All linted files must be part of the provided program(s).
|
|
125
|
-
*/
|
|
126
|
-
programs?: ts.Program[] | null;
|
|
127
|
-
/**
|
|
128
|
-
* @deprecated - this flag will be removed in the next major.
|
|
129
|
-
* Do not rely on the behavior provided by this flag.
|
|
130
|
-
*/
|
|
131
|
-
DEPRECATED__createDefaultProgram?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts,
|
|
134
|
-
* such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback
|
|
135
|
-
* on a file in an IDE).
|
|
136
|
-
*
|
|
137
|
-
* When typescript-eslint handles TypeScript Program management behind the scenes, this distinction
|
|
138
|
-
* is important because there is significant overhead to managing the so called Watch Programs
|
|
139
|
-
* needed for the long-running use-case.
|
|
140
|
-
*
|
|
141
|
-
* When allowAutomaticSingleRunInference is enabled, we will use common heuristics to infer
|
|
142
|
-
* whether or not ESLint is being used as part of a single run.
|
|
143
|
-
*/
|
|
144
|
-
allowAutomaticSingleRunInference?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Granular control of the expiry lifetime of our internal caches.
|
|
147
|
-
* You can specify the number of seconds as an integer number, or the string
|
|
148
|
-
* 'Infinity' if you never want the cache to expire.
|
|
149
|
-
*
|
|
150
|
-
* By default cache entries will be evicted after 30 seconds, or will persist
|
|
151
|
-
* indefinitely if `allowAutomaticSingleRunInference = true` AND the parser
|
|
152
|
-
* infers that it is a single run.
|
|
153
|
-
*/
|
|
154
|
-
cacheLifetime?: {
|
|
155
|
-
/**
|
|
156
|
-
* Glob resolution for `parserOptions.project` values.
|
|
157
|
-
*/
|
|
158
|
-
glob?: CacheDurationSeconds;
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
export type TSESTreeOptions = ParseAndGenerateServicesOptions;
|
|
162
|
-
export interface ParserWeakMap<TKey, TValueBase> {
|
|
163
|
-
get<TValue extends TValueBase>(key: TKey): TValue;
|
|
164
|
-
has(key: unknown): boolean;
|
|
165
|
-
}
|
|
166
|
-
export interface ParserWeakMapESTreeToTSNode<TKey extends TSESTree.Node = TSESTree.Node> {
|
|
167
|
-
get<TKeyBase extends TKey>(key: TKeyBase): TSESTreeToTSNode<TKeyBase>;
|
|
168
|
-
has(key: unknown): boolean;
|
|
169
|
-
}
|
|
170
|
-
export interface ParserServicesNodeMaps {
|
|
171
|
-
esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
|
|
172
|
-
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, TSESTree.Node>;
|
|
173
|
-
}
|
|
174
|
-
export interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps {
|
|
175
|
-
program: ts.Program;
|
|
176
|
-
getSymbolAtLocation: (node: TSESTree.Node) => ts.Symbol | undefined;
|
|
177
|
-
getTypeAtLocation: (node: TSESTree.Node) => ts.Type;
|
|
178
|
-
}
|
|
179
|
-
export interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps {
|
|
180
|
-
program: null;
|
|
181
|
-
}
|
|
182
|
-
export type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation;
|
|
183
|
-
export {};
|
|
184
|
-
//# sourceMappingURL=parser-options.d.ts.map
|
package/_ts4.3/dist/parser.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
import type { ParserServices, TSESTreeOptions } from './parser-options';
|
|
3
|
-
import type { TSESTree } from './ts-estree';
|
|
4
|
-
declare function clearProgramCache(): void;
|
|
5
|
-
interface EmptyObject {
|
|
6
|
-
}
|
|
7
|
-
type AST<T extends TSESTreeOptions> = TSESTree.Program & (T['comment'] extends true ? {
|
|
8
|
-
comments: TSESTree.Comment[];
|
|
9
|
-
} : EmptyObject) & (T['tokens'] extends true ? {
|
|
10
|
-
tokens: TSESTree.Token[];
|
|
11
|
-
} : EmptyObject);
|
|
12
|
-
interface ParseAndGenerateServicesResult<T extends TSESTreeOptions> {
|
|
13
|
-
ast: AST<T>;
|
|
14
|
-
services: ParserServices;
|
|
15
|
-
}
|
|
16
|
-
declare function parse<T extends TSESTreeOptions = TSESTreeOptions>(code: string, options?: T): AST<T>;
|
|
17
|
-
declare function clearParseAndGenerateServicesCalls(): void;
|
|
18
|
-
declare function parseAndGenerateServices<T extends TSESTreeOptions = TSESTreeOptions>(code: ts.SourceFile | string, options: T): ParseAndGenerateServicesResult<T>;
|
|
19
|
-
export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, clearProgramCache, clearParseAndGenerateServicesCalls, };
|
|
20
|
-
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Diagnostic, Program, SourceFile } from 'typescript';
|
|
2
|
-
export interface SemanticOrSyntacticError extends Diagnostic {
|
|
3
|
-
message: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether
|
|
7
|
-
* they are related to generic ECMAScript standards, or TypeScript-specific constructs.
|
|
8
|
-
*
|
|
9
|
-
* Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when
|
|
10
|
-
* the user opts in to throwing errors on semantic issues.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined;
|
|
13
|
-
//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { VisitorKeys } from '@typescript-eslint/visitor-keys';
|
|
2
|
-
import type { TSESTree } from './ts-estree';
|
|
3
|
-
type SimpleTraverseOptions = Readonly<{
|
|
4
|
-
visitorKeys?: Readonly<VisitorKeys>;
|
|
5
|
-
enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void;
|
|
6
|
-
} | {
|
|
7
|
-
visitorKeys?: Readonly<VisitorKeys>;
|
|
8
|
-
visitors: {
|
|
9
|
-
[key: string]: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void;
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
12
|
-
export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=simple-traverse.d.ts.map
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import type { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types';
|
|
2
|
-
import type * as ts from 'typescript';
|
|
3
|
-
import type { TSNode } from './ts-nodes';
|
|
4
|
-
export interface EstreeToTsNodeTypes {
|
|
5
|
-
[AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration;
|
|
6
|
-
[AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression;
|
|
7
|
-
[AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression;
|
|
8
|
-
[AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction;
|
|
9
|
-
[AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression;
|
|
10
|
-
[AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment;
|
|
11
|
-
[AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression;
|
|
12
|
-
[AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression;
|
|
13
|
-
[AST_NODE_TYPES.BlockStatement]: ts.Block;
|
|
14
|
-
[AST_NODE_TYPES.BreakStatement]: ts.BreakStatement;
|
|
15
|
-
[AST_NODE_TYPES.CallExpression]: ts.CallExpression;
|
|
16
|
-
[AST_NODE_TYPES.CatchClause]: ts.CatchClause;
|
|
17
|
-
[AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression;
|
|
18
|
-
[AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression;
|
|
19
|
-
[AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration;
|
|
20
|
-
[AST_NODE_TYPES.ClassExpression]: ts.ClassExpression;
|
|
21
|
-
[AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration;
|
|
22
|
-
[AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression;
|
|
23
|
-
[AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement;
|
|
24
|
-
[AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement;
|
|
25
|
-
[AST_NODE_TYPES.Decorator]: ts.Decorator;
|
|
26
|
-
[AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement;
|
|
27
|
-
[AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement;
|
|
28
|
-
[AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration;
|
|
29
|
-
[AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
30
|
-
[AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
31
|
-
[AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier;
|
|
32
|
-
[AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement;
|
|
33
|
-
[AST_NODE_TYPES.ForInStatement]: ts.ForInStatement;
|
|
34
|
-
[AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement;
|
|
35
|
-
[AST_NODE_TYPES.ForStatement]: ts.ForStatement;
|
|
36
|
-
[AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration;
|
|
37
|
-
[AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
38
|
-
[AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword>;
|
|
39
|
-
[AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier;
|
|
40
|
-
[AST_NODE_TYPES.IfStatement]: ts.IfStatement;
|
|
41
|
-
[AST_NODE_TYPES.ImportAttribute]: ts.AssertEntry;
|
|
42
|
-
[AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration;
|
|
43
|
-
[AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause;
|
|
44
|
-
[AST_NODE_TYPES.ImportExpression]: ts.CallExpression;
|
|
45
|
-
[AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport;
|
|
46
|
-
[AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier;
|
|
47
|
-
[AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute;
|
|
48
|
-
[AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement;
|
|
49
|
-
[AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment;
|
|
50
|
-
[AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement;
|
|
51
|
-
[AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression;
|
|
52
|
-
[AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression;
|
|
53
|
-
[AST_NODE_TYPES.JSXFragment]: ts.JsxFragment;
|
|
54
|
-
[AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression;
|
|
55
|
-
[AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement;
|
|
56
|
-
[AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment;
|
|
57
|
-
[AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute;
|
|
58
|
-
[AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression;
|
|
59
|
-
[AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression;
|
|
60
|
-
[AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName;
|
|
61
|
-
[AST_NODE_TYPES.JSXText]: ts.JsxText;
|
|
62
|
-
[AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement;
|
|
63
|
-
[AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral;
|
|
64
|
-
[AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression;
|
|
65
|
-
[AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression;
|
|
66
|
-
[AST_NODE_TYPES.MetaProperty]: ts.MetaProperty;
|
|
67
|
-
[AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
68
|
-
[AST_NODE_TYPES.NewExpression]: ts.NewExpression;
|
|
69
|
-
[AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression;
|
|
70
|
-
[AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression;
|
|
71
|
-
[AST_NODE_TYPES.Program]: ts.SourceFile;
|
|
72
|
-
[AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment;
|
|
73
|
-
[AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement;
|
|
74
|
-
[AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement;
|
|
75
|
-
[AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression;
|
|
76
|
-
[AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement;
|
|
77
|
-
[AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration;
|
|
78
|
-
[AST_NODE_TYPES.Super]: ts.SuperExpression;
|
|
79
|
-
[AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause;
|
|
80
|
-
[AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement;
|
|
81
|
-
[AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression;
|
|
82
|
-
[AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail;
|
|
83
|
-
[AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression;
|
|
84
|
-
[AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression;
|
|
85
|
-
[AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement;
|
|
86
|
-
[AST_NODE_TYPES.TryStatement]: ts.TryStatement;
|
|
87
|
-
[AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration;
|
|
88
|
-
[AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration;
|
|
89
|
-
[AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
90
|
-
[AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode;
|
|
91
|
-
[AST_NODE_TYPES.TSAsExpression]: ts.AsExpression;
|
|
92
|
-
[AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration;
|
|
93
|
-
[AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments;
|
|
94
|
-
[AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode;
|
|
95
|
-
[AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode;
|
|
96
|
-
[AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration;
|
|
97
|
-
[AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration;
|
|
98
|
-
[AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration;
|
|
99
|
-
[AST_NODE_TYPES.TSEnumMember]: ts.EnumMember;
|
|
100
|
-
[AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment;
|
|
101
|
-
[AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference;
|
|
102
|
-
[AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode;
|
|
103
|
-
[AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration;
|
|
104
|
-
[AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode;
|
|
105
|
-
[AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode;
|
|
106
|
-
[AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration;
|
|
107
|
-
[AST_NODE_TYPES.TSInferType]: ts.InferTypeNode;
|
|
108
|
-
[AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration;
|
|
109
|
-
[AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration;
|
|
110
|
-
[AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments;
|
|
111
|
-
[AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode;
|
|
112
|
-
[AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments;
|
|
113
|
-
[AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression;
|
|
114
|
-
[AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode;
|
|
115
|
-
[AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode;
|
|
116
|
-
[AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration;
|
|
117
|
-
[AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock;
|
|
118
|
-
[AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration;
|
|
119
|
-
[AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember;
|
|
120
|
-
[AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration;
|
|
121
|
-
[AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression;
|
|
122
|
-
[AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode;
|
|
123
|
-
[AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration;
|
|
124
|
-
[AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature;
|
|
125
|
-
[AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName;
|
|
126
|
-
[AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode;
|
|
127
|
-
[AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode;
|
|
128
|
-
[AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode;
|
|
129
|
-
[AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode;
|
|
130
|
-
[AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration;
|
|
131
|
-
[AST_NODE_TYPES.TSTypeAnnotation]: undefined;
|
|
132
|
-
[AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion;
|
|
133
|
-
[AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode;
|
|
134
|
-
[AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode;
|
|
135
|
-
[AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration;
|
|
136
|
-
[AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined;
|
|
137
|
-
[AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode;
|
|
138
|
-
[AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode;
|
|
139
|
-
[AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode;
|
|
140
|
-
[AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode;
|
|
141
|
-
[AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode;
|
|
142
|
-
[AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression;
|
|
143
|
-
[AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression;
|
|
144
|
-
[AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement;
|
|
145
|
-
[AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration;
|
|
146
|
-
[AST_NODE_TYPES.WhileStatement]: ts.WhileStatement;
|
|
147
|
-
[AST_NODE_TYPES.WithStatement]: ts.WithStatement;
|
|
148
|
-
[AST_NODE_TYPES.YieldExpression]: ts.YieldExpression;
|
|
149
|
-
[AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
150
|
-
[AST_NODE_TYPES.TSAbstractKeyword]: ts.Token<ts.SyntaxKind.AbstractKeyword>;
|
|
151
|
-
[AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral;
|
|
152
|
-
[AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode;
|
|
153
|
-
[AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode;
|
|
154
|
-
[AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode;
|
|
155
|
-
[AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode;
|
|
156
|
-
[AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode;
|
|
157
|
-
[AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode;
|
|
158
|
-
[AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode;
|
|
159
|
-
[AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode;
|
|
160
|
-
[AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode;
|
|
161
|
-
[AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode;
|
|
162
|
-
[AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode;
|
|
163
|
-
[AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode;
|
|
164
|
-
[AST_NODE_TYPES.TSAsyncKeyword]: ts.Token<ts.SyntaxKind.AsyncKeyword>;
|
|
165
|
-
[AST_NODE_TYPES.TSDeclareKeyword]: ts.Token<ts.SyntaxKind.DeclareKeyword>;
|
|
166
|
-
[AST_NODE_TYPES.TSExportKeyword]: ts.Token<ts.SyntaxKind.ExportKeyword>;
|
|
167
|
-
[AST_NODE_TYPES.TSStaticKeyword]: ts.Token<ts.SyntaxKind.StaticKeyword>;
|
|
168
|
-
[AST_NODE_TYPES.TSPublicKeyword]: ts.Token<ts.SyntaxKind.PublicKeyword>;
|
|
169
|
-
[AST_NODE_TYPES.TSPrivateKeyword]: ts.Token<ts.SyntaxKind.PrivateKeyword>;
|
|
170
|
-
[AST_NODE_TYPES.TSProtectedKeyword]: ts.Token<ts.SyntaxKind.ProtectedKeyword>;
|
|
171
|
-
[AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Maps TSESTree AST Node type to the expected TypeScript AST Node type(s).
|
|
175
|
-
* This mapping is based on the internal logic of the parser.
|
|
176
|
-
*/
|
|
177
|
-
export type TSESTreeToTSNode<T extends TSESTree.Node = TSESTree.Node> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
|
|
178
|
-
//# sourceMappingURL=estree-to-ts-node-types.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
declare module 'typescript' {
|
|
3
|
-
interface NamedTupleMember extends ts.Node {
|
|
4
|
-
}
|
|
5
|
-
interface TemplateLiteralTypeNode extends ts.Node {
|
|
6
|
-
}
|
|
7
|
-
interface PrivateIdentifier extends ts.Node {
|
|
8
|
-
}
|
|
9
|
-
interface ClassStaticBlockDeclaration extends ts.Node {
|
|
10
|
-
}
|
|
11
|
-
interface AssertClause extends ts.Node {
|
|
12
|
-
}
|
|
13
|
-
interface AssertEntry extends ts.Node {
|
|
14
|
-
}
|
|
15
|
-
interface SatisfiesExpression extends ts.Node {
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export type TSToken = ts.Token<ts.SyntaxKind>;
|
|
19
|
-
export type TSNode = ts.AssertClause | ts.AssertEntry | ts.Modifier | ts.Identifier | ts.PrivateIdentifier | ts.QualifiedName | ts.ComputedPropertyName | ts.Decorator | ts.TypeParameterDeclaration | ts.CallSignatureDeclaration | ts.ConstructSignatureDeclaration | ts.VariableDeclaration | ts.VariableDeclarationList | ts.ParameterDeclaration | ts.BindingElement | ts.PropertySignature | ts.PropertyDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment | ts.ObjectBindingPattern | ts.ArrayBindingPattern | ts.FunctionDeclaration | ts.MethodSignature | ts.MethodDeclaration | ts.ConstructorDeclaration | ts.SemicolonClassElement | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.IndexSignatureDeclaration | ts.KeywordTypeNode | ts.ImportTypeNode | ts.ThisTypeNode | ts.ClassStaticBlockDeclaration | ts.ConstructorTypeNode | ts.FunctionTypeNode | ts.TypeReferenceNode | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeLiteralNode | ts.ArrayTypeNode | ts.NamedTupleMember | ts.TupleTypeNode | ts.OptionalTypeNode | ts.RestTypeNode | ts.UnionTypeNode | ts.IntersectionTypeNode | ts.ConditionalTypeNode | ts.InferTypeNode | ts.ParenthesizedTypeNode | ts.TypeOperatorNode | ts.IndexedAccessTypeNode | ts.MappedTypeNode | ts.LiteralTypeNode | ts.StringLiteral | ts.OmittedExpression | ts.PartiallyEmittedExpression | ts.PrefixUnaryExpression | ts.PostfixUnaryExpression | ts.NullLiteral | ts.BooleanLiteral | ts.ThisExpression | ts.SuperExpression | ts.ImportExpression | ts.DeleteExpression | ts.TypeOfExpression | ts.VoidExpression | ts.AwaitExpression | ts.YieldExpression | ts.SyntheticExpression | ts.BinaryExpression | ts.ConditionalExpression | ts.FunctionExpression | ts.ArrowFunction | ts.RegularExpressionLiteral | ts.NoSubstitutionTemplateLiteral | ts.NumericLiteral | ts.BigIntLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail | ts.TemplateExpression | ts.TemplateSpan | ts.ParenthesizedExpression | ts.ArrayLiteralExpression | ts.SpreadElement | ts.ObjectLiteralExpression | ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.CallExpression | ts.ExpressionWithTypeArguments | ts.NewExpression | ts.TaggedTemplateExpression | ts.AsExpression | ts.TypeAssertion | ts.NonNullExpression | ts.MetaProperty | ts.JsxElement | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.JsxFragment | ts.JsxOpeningFragment | ts.JsxClosingFragment | ts.JsxAttribute | ts.JsxSpreadAttribute | ts.JsxClosingElement | ts.JsxExpression | ts.JsxNamespacedName | ts.JsxText | ts.NotEmittedStatement | ts.CommaListExpression | ts.EmptyStatement | ts.DebuggerStatement | ts.MissingDeclaration | ts.Block | ts.VariableStatement | ts.ExpressionStatement | ts.IfStatement | ts.DoStatement | ts.WhileStatement | ts.ForStatement | ts.ForInStatement | ts.ForOfStatement | ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.WithStatement | ts.SwitchStatement | ts.CaseBlock | ts.CaseClause | ts.DefaultClause | ts.LabeledStatement | ts.ThrowStatement | ts.TryStatement | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.InterfaceDeclaration | ts.HeritageClause | ts.TypeAliasDeclaration | ts.EnumMember | ts.EnumDeclaration | ts.ModuleDeclaration | ts.ModuleBlock | ts.ImportEqualsDeclaration | ts.ExternalModuleReference | ts.ImportDeclaration | ts.ImportClause | ts.NamespaceImport | ts.NamespaceExportDeclaration | ts.ExportDeclaration | ts.NamedImports | ts.NamedExports | ts.ImportSpecifier | ts.ExportSpecifier | ts.ExportAssignment | ts.SourceFile | ts.Bundle | ts.InputFiles | ts.UnparsedSource | ts.JsonMinusNumericLiteral | ts.TemplateLiteralTypeNode | ts.SatisfiesExpression | ts.JSDoc | ts.JSDocTypeExpression | ts.JSDocUnknownTag | ts.JSDocAugmentsTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocThisTag | ts.JSDocTemplateTag | ts.JSDocReturnTag | ts.JSDocTypeTag | ts.JSDocTypedefTag | ts.JSDocCallbackTag | ts.JSDocSignature | ts.JSDocPropertyTag | ts.JSDocParameterTag | ts.JSDocTypeLiteral | ts.JSDocFunctionType | ts.JSDocAllType | ts.JSDocUnknownType | ts.JSDocNullableType | ts.JSDocNonNullableType | ts.JSDocOptionalType | ts.JSDocVariadicType | ts.JSDocAuthorTag;
|
|
20
|
-
//# sourceMappingURL=ts-nodes.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './create-program/getScriptKind';
|
|
2
|
-
export * from './ast-converter';
|
|
3
|
-
export type { ParseSettings } from './parseSettings';
|
|
4
|
-
export * from './getModifiers';
|
|
5
|
-
export { typescriptVersionIsAtLeast } from './version-check';
|
|
6
|
-
export { getCanonicalFileName } from './create-program/shared';
|
|
7
|
-
//# sourceMappingURL=use-at-your-own-risk.d.ts.map
|