@typescript-eslint/typescript-estree 6.0.1-alpha.33 → 6.0.1-alpha.35
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/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -1
- package/dist/create-program/getWatchProgramsForProjects.js +1 -4
- package/dist/create-program/getWatchProgramsForProjects.js.map +1 -1
- package/package.json +4 -4
- 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 -10
- package/_ts4.3/dist/create-program/createProjectService.d.ts +0 -4
- 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 -16
- 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 -7
- package/_ts4.3/dist/parseSettings/getProjectConfigFiles.d.ts +0 -12
- package/_ts4.3/dist/parseSettings/index.d.ts +0 -122
- 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 -192
- 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/useProgramFromProjectService.d.ts +0 -5
- package/_ts4.3/dist/version-check.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AAgED;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CAuHd;
|
|
1
|
+
{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AAgED;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CAuHd;AAkQD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -198,10 +198,7 @@ exports.getWatchProgramsForProjects = getWatchProgramsForProjects;
|
|
|
198
198
|
function createWatchProgram(tsconfigPath, parseSettings) {
|
|
199
199
|
log('Creating watch program for %s.', tsconfigPath);
|
|
200
200
|
// create compiler host
|
|
201
|
-
const watchCompilerHost = ts.createWatchCompilerHost(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings),
|
|
202
|
-
...ts.sys,
|
|
203
|
-
getCurrentDirectory: () => parseSettings.tsconfigRootDir,
|
|
204
|
-
}, ts.createAbstractBuilder, diagnosticReporter,
|
|
201
|
+
const watchCompilerHost = ts.createWatchCompilerHost(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), ts.sys, ts.createAbstractBuilder, diagnosticReporter,
|
|
205
202
|
// TODO: file issue on TypeScript to suggest making optional?
|
|
206
203
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
207
204
|
/*reportWatchStatus*/ () => { });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWatchProgramsForProjects.js","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,4CAAoB;AACpB,+CAAiC;AAGjC,kDAA8C;AAE9C,qCAKkB;AAGlB,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAGjC,CAAC;AAEJ;;;GAGG;AACH,MAAM,4BAA4B,GAAG,IAAI,GAAG,EAGzC,CAAC;AACJ,MAAM,8BAA8B,GAAG,IAAI,GAAG,EAG3C,CAAC;AAEJ;;GAEG;AACH,MAAM,o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CAAC;IACrE,IAAI,CAAC,WAAW,EAAE;QAChB,sGAAsG;QACtG,OAAO,IAAI,CAAC;KACb;IAED,MAAM,kBAAkB,GAAG,4BAA4B,CAAC,GAAG,CACzD,IAAA,6BAAoB,EAAC,WAAW,CAAC,CAClC,CAAC;IACF,IAAI,CAAC,kBAAkB,EAAE;QACvB,qCAAqC;QACrC,GAAG,CAAC,kDAAkD,EAAE,WAAW,CAAC,CAAC;QACrE,OAAO,cAAc,CAAC;KACvB;IAED,GAAG,CAAC,6BAA6B,EAAE,WAAW,CAAC,CAAC;IAChD,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAC9B,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC,CACjD,CAAC;IAEF,2EAA2E;IAC3E,oBAAoB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAE1C,cAAc,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,CAAC;IACzD,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,UAAU,EAAE;QACd,OAAO,cAAc,CAAC;KACvB;IAED,GAAG,CACD,uGAAuG,EACvG,QAAQ,CACT,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "6.0.1-alpha.
|
|
3
|
+
"version": "6.0.1-alpha.35+bbde5c987",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@typescript-eslint/types": "6.0.1-alpha.
|
|
56
|
-
"@typescript-eslint/visitor-keys": "6.0.1-alpha.
|
|
55
|
+
"@typescript-eslint/types": "6.0.1-alpha.35+bbde5c987",
|
|
56
|
+
"@typescript-eslint/visitor-keys": "6.0.1-alpha.35+bbde5c987",
|
|
57
57
|
"debug": "^4.3.4",
|
|
58
58
|
"globby": "^11.1.0",
|
|
59
59
|
"is-glob": "^4.0.3",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
]
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "bbde5c987a048888eeae7d2dcea8fa53a9287e03"
|
|
89
89
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SourceFile } from 'typescript';
|
|
2
|
-
import type { ASTMaps } from './convert';
|
|
3
|
-
import type { ParseSettings } from './parseSettings';
|
|
4
|
-
import type { TSESTree } from './ts-estree';
|
|
5
|
-
export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): {
|
|
6
|
-
estree: TSESTree.Program;
|
|
7
|
-
astMaps: ASTMaps;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=ast-converter.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Clears all of the internal caches.
|
|
3
|
-
* Generally you shouldn't need or want to use this.
|
|
4
|
-
* Examples of intended uses:
|
|
5
|
-
* - In tests to reset parser state to keep tests isolated.
|
|
6
|
-
* - In custom lint tooling that iteratively lints one project at a time to prevent OOMs.
|
|
7
|
-
*/
|
|
8
|
-
export declare function clearCaches(): void;
|
|
9
|
-
export declare const clearProgramCache: typeof clearCaches;
|
|
10
|
-
//# sourceMappingURL=clear-caches.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
import type { TSESTree } from './ts-estree';
|
|
3
|
-
/**
|
|
4
|
-
* Convert all comments for the given AST.
|
|
5
|
-
* @param ast the AST object
|
|
6
|
-
* @param code the TypeScript code
|
|
7
|
-
* @returns the converted ESTreeComment
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[];
|
|
11
|
-
//# sourceMappingURL=convert-comments.d.ts.map
|
package/_ts4.3/dist/convert.d.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
import type { TSError } from './node-utils';
|
|
3
|
-
import type { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options';
|
|
4
|
-
import type { SemanticOrSyntacticError } from './semantic-or-syntactic-errors';
|
|
5
|
-
import type { TSESTree, TSNode } from './ts-estree';
|
|
6
|
-
export interface ConverterOptions {
|
|
7
|
-
allowInvalidAST?: boolean;
|
|
8
|
-
errorOnUnknownASTType?: boolean;
|
|
9
|
-
shouldPreserveNodeMaps?: boolean;
|
|
10
|
-
suppressDeprecatedPropertyWarnings?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Extends and formats a given error object
|
|
14
|
-
* @param error the error object
|
|
15
|
-
* @returns converted error object
|
|
16
|
-
*/
|
|
17
|
-
export declare function convertError(error: SemanticOrSyntacticError | ts.DiagnosticWithLocation): TSError;
|
|
18
|
-
export interface ASTMaps {
|
|
19
|
-
esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
|
|
20
|
-
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode, TSESTree.Node>;
|
|
21
|
-
}
|
|
22
|
-
export declare class Converter {
|
|
23
|
-
#private;
|
|
24
|
-
private readonly ast;
|
|
25
|
-
private readonly options;
|
|
26
|
-
private readonly esTreeNodeToTSNodeMap;
|
|
27
|
-
private readonly tsNodeToESTreeNodeMap;
|
|
28
|
-
private allowPattern;
|
|
29
|
-
/**
|
|
30
|
-
* Converts a TypeScript node into an ESTree node
|
|
31
|
-
* @param ast the full TypeScript AST
|
|
32
|
-
* @param options additional options for the conversion
|
|
33
|
-
* @returns the converted ESTreeNode
|
|
34
|
-
*/
|
|
35
|
-
constructor(ast: ts.SourceFile, options?: ConverterOptions);
|
|
36
|
-
getASTMaps(): ASTMaps;
|
|
37
|
-
convertProgram(): TSESTree.Program;
|
|
38
|
-
/**
|
|
39
|
-
* Converts a TypeScript node into an ESTree node.
|
|
40
|
-
* @param node the child ts.Node
|
|
41
|
-
* @param parent parentNode
|
|
42
|
-
* @param allowPattern flag to determine if patterns are allowed
|
|
43
|
-
* @returns the converted ESTree node
|
|
44
|
-
*/
|
|
45
|
-
private converter;
|
|
46
|
-
/**
|
|
47
|
-
* Fixes the exports of the given ts.Node
|
|
48
|
-
* @param node the ts.Node
|
|
49
|
-
* @param result result
|
|
50
|
-
* @returns the ESTreeNode with fixed exports
|
|
51
|
-
*/
|
|
52
|
-
private fixExports;
|
|
53
|
-
/**
|
|
54
|
-
* Register specific TypeScript node into map with first ESTree node provided
|
|
55
|
-
*/
|
|
56
|
-
private registerTSNodeInNodeMap;
|
|
57
|
-
/**
|
|
58
|
-
* Converts a TypeScript node into an ESTree node.
|
|
59
|
-
* @param child the child ts.Node
|
|
60
|
-
* @param parent parentNode
|
|
61
|
-
* @returns the converted ESTree node
|
|
62
|
-
*/
|
|
63
|
-
private convertPattern;
|
|
64
|
-
/**
|
|
65
|
-
* Converts a TypeScript node into an ESTree node.
|
|
66
|
-
* @param child the child ts.Node
|
|
67
|
-
* @param parent parentNode
|
|
68
|
-
* @returns the converted ESTree node
|
|
69
|
-
*/
|
|
70
|
-
private convertChild;
|
|
71
|
-
private createNode;
|
|
72
|
-
private convertBindingNameWithTypeAnnotation;
|
|
73
|
-
/**
|
|
74
|
-
* Converts a child into a type annotation. This creates an intermediary
|
|
75
|
-
* TypeAnnotation node to match what Flow does.
|
|
76
|
-
* @param child The TypeScript AST node to convert.
|
|
77
|
-
* @param parent parentNode
|
|
78
|
-
* @returns The type annotation node.
|
|
79
|
-
*/
|
|
80
|
-
private convertTypeAnnotation;
|
|
81
|
-
/**
|
|
82
|
-
* Coverts body Nodes and add a directive field to StringLiterals
|
|
83
|
-
* @param nodes of ts.Node
|
|
84
|
-
* @param parent parentNode
|
|
85
|
-
* @returns Array of body statements
|
|
86
|
-
*/
|
|
87
|
-
private convertBodyExpressions;
|
|
88
|
-
/**
|
|
89
|
-
* Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node
|
|
90
|
-
* @param typeArguments ts.NodeArray typeArguments
|
|
91
|
-
* @param node parent used to create this node
|
|
92
|
-
* @returns TypeParameterInstantiation node
|
|
93
|
-
*/
|
|
94
|
-
private convertTypeArgumentsToTypeParameterInstantiation;
|
|
95
|
-
/**
|
|
96
|
-
* Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node
|
|
97
|
-
* @param typeParameters ts.Node typeParameters
|
|
98
|
-
* @returns TypeParameterDeclaration node
|
|
99
|
-
*/
|
|
100
|
-
private convertTSTypeParametersToTypeParametersDeclaration;
|
|
101
|
-
/**
|
|
102
|
-
* Converts an array of ts.Node parameters into an array of ESTreeNode params
|
|
103
|
-
* @param parameters An array of ts.Node params to be converted
|
|
104
|
-
* @returns an array of converted ESTreeNode params
|
|
105
|
-
*/
|
|
106
|
-
private convertParameters;
|
|
107
|
-
private convertChainExpression;
|
|
108
|
-
/**
|
|
109
|
-
* For nodes that are copied directly from the TypeScript AST into
|
|
110
|
-
* ESTree mostly as-is. The only difference is the addition of a type
|
|
111
|
-
* property instead of a kind property. Recursively copies all children.
|
|
112
|
-
*/
|
|
113
|
-
private deeplyCopy;
|
|
114
|
-
private convertJSXIdentifier;
|
|
115
|
-
private convertJSXNamespaceOrIdentifier;
|
|
116
|
-
/**
|
|
117
|
-
* Converts a TypeScript JSX node.tagName into an ESTree node.name
|
|
118
|
-
* @param node the tagName object from a JSX ts.Node
|
|
119
|
-
* @param parent
|
|
120
|
-
* @returns the converted ESTree name object
|
|
121
|
-
*/
|
|
122
|
-
private convertJSXTagName;
|
|
123
|
-
private convertMethodSignature;
|
|
124
|
-
private convertAssertClasue;
|
|
125
|
-
/**
|
|
126
|
-
* Uses the provided range location to adjust the location data of the given Node
|
|
127
|
-
* @param result The node that will have its location data mutated
|
|
128
|
-
* @param childRange The child node range used to expand location
|
|
129
|
-
*/
|
|
130
|
-
private fixParentLocation;
|
|
131
|
-
private assertModuleSpecifier;
|
|
132
|
-
/**
|
|
133
|
-
* Converts a TypeScript node into an ESTree node.
|
|
134
|
-
* The core of the conversion logic:
|
|
135
|
-
* Identify and convert each relevant TypeScript SyntaxKind
|
|
136
|
-
* @param node the child ts.Node
|
|
137
|
-
* @param parent parentNode
|
|
138
|
-
* @returns the converted ESTree node
|
|
139
|
-
*/
|
|
140
|
-
private convertNode;
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
interface DirectoryStructureHost {
|
|
3
|
-
readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[];
|
|
4
|
-
}
|
|
5
|
-
interface CachedDirectoryStructureHost extends DirectoryStructureHost {
|
|
6
|
-
readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[];
|
|
7
|
-
}
|
|
8
|
-
interface WatchCompilerHostOfConfigFile<T extends ts.BuilderProgram> extends ts.WatchCompilerHostOfConfigFile<T> {
|
|
9
|
-
onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void;
|
|
10
|
-
extraFileExtensions?: readonly ts.FileExtensionInfo[];
|
|
11
|
-
}
|
|
12
|
-
export { WatchCompilerHostOfConfigFile };
|
|
13
|
-
//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ParseSettings } from '../parseSettings';
|
|
2
|
-
import type { ASTAndDefiniteProgram } from './shared';
|
|
3
|
-
/**
|
|
4
|
-
* @param parseSettings Internal settings for parsing the file
|
|
5
|
-
* @returns If found, returns the source file corresponding to the code and the containing program
|
|
6
|
-
* @deprecated
|
|
7
|
-
* This is a legacy option that comes with severe performance penalties.
|
|
8
|
-
* Please do not use it.
|
|
9
|
-
*/
|
|
10
|
-
declare function createDefaultProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined;
|
|
11
|
-
export { createDefaultProgram };
|
|
12
|
-
//# sourceMappingURL=createDefaultProgram.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ParseSettings } from '../parseSettings';
|
|
2
|
-
import type { ASTAndDefiniteProgram } from './shared';
|
|
3
|
-
/**
|
|
4
|
-
* @param code The code of the file being linted
|
|
5
|
-
* @returns Returns a new source file and program corresponding to the linted code
|
|
6
|
-
*/
|
|
7
|
-
declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram;
|
|
8
|
-
export { createIsolatedProgram };
|
|
9
|
-
//# sourceMappingURL=createIsolatedProgram.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
import type { ParseSettings } from '../parseSettings';
|
|
3
|
-
import type { ASTAndDefiniteProgram } from './shared';
|
|
4
|
-
/**
|
|
5
|
-
* @param parseSettings Internal settings for parsing the file
|
|
6
|
-
* @returns If found, the source file corresponding to the code and the containing program
|
|
7
|
-
*/
|
|
8
|
-
declare function createProjectProgram(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): ASTAndDefiniteProgram | undefined;
|
|
9
|
-
export { createProjectProgram };
|
|
10
|
-
//# sourceMappingURL=createProjectProgram.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
import type { ParseSettings } from '../parseSettings';
|
|
3
|
-
import type { ASTAndNoProgram } from './shared';
|
|
4
|
-
declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile;
|
|
5
|
-
declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram;
|
|
6
|
-
export { createSourceFile, createNoProgram };
|
|
7
|
-
//# sourceMappingURL=createSourceFile.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind;
|
|
3
|
-
declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant;
|
|
4
|
-
export { getScriptKind, getLanguageVariant };
|
|
5
|
-
//# sourceMappingURL=getScriptKind.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
import type { ParseSettings } from '../parseSettings';
|
|
3
|
-
/**
|
|
4
|
-
* Clear all of the parser caches.
|
|
5
|
-
* This should only be used in testing to ensure the parser is clean between tests.
|
|
6
|
-
*/
|
|
7
|
-
declare function clearWatchCaches(): void;
|
|
8
|
-
/**
|
|
9
|
-
* Calculate project environments using options provided by consumer and paths from config
|
|
10
|
-
* @param parseSettings Internal settings for parsing the file
|
|
11
|
-
* @returns The programs corresponding to the supplied tsconfig paths
|
|
12
|
-
*/
|
|
13
|
-
declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[];
|
|
14
|
-
export { clearWatchCaches, getWatchProgramsForProjects };
|
|
15
|
-
//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Program } from 'typescript';
|
|
2
|
-
import * as ts from 'typescript';
|
|
3
|
-
import type { ParseSettings } from '../parseSettings';
|
|
4
|
-
interface ASTAndNoProgram {
|
|
5
|
-
ast: ts.SourceFile;
|
|
6
|
-
program: null;
|
|
7
|
-
}
|
|
8
|
-
interface ASTAndDefiniteProgram {
|
|
9
|
-
ast: ts.SourceFile;
|
|
10
|
-
program: ts.Program;
|
|
11
|
-
}
|
|
12
|
-
type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram;
|
|
13
|
-
/**
|
|
14
|
-
* Compiler options required to avoid critical functionality issues
|
|
15
|
-
*/
|
|
16
|
-
declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions;
|
|
17
|
-
declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions;
|
|
18
|
-
type CanonicalPath = string & {
|
|
19
|
-
__brand: unknown;
|
|
20
|
-
};
|
|
21
|
-
declare function getCanonicalFileName(filePath: string): CanonicalPath;
|
|
22
|
-
declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string;
|
|
23
|
-
declare function canonicalDirname(p: CanonicalPath): CanonicalPath;
|
|
24
|
-
declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Hash content for compare content.
|
|
27
|
-
* @param content hashed contend
|
|
28
|
-
* @returns hashed result
|
|
29
|
-
*/
|
|
30
|
-
declare function createHash(content: string): string;
|
|
31
|
-
export { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, createHash, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, };
|
|
32
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
import type { ASTAndDefiniteProgram } from './shared';
|
|
3
|
-
export interface ProvidedProgramsSettings {
|
|
4
|
-
filePath: string;
|
|
5
|
-
tsconfigRootDir: string;
|
|
6
|
-
}
|
|
7
|
-
declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, { filePath, tsconfigRootDir }: ProvidedProgramsSettings): ASTAndDefiniteProgram | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* Utility offered by parser to help consumers construct their own program instance.
|
|
10
|
-
*
|
|
11
|
-
* @param configFile the path to the tsconfig.json file, relative to `projectDirectory`
|
|
12
|
-
* @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()`
|
|
13
|
-
*/
|
|
14
|
-
declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program;
|
|
15
|
-
export { useProvidedPrograms, createProgramFromConfigFile };
|
|
16
|
-
//# sourceMappingURL=useProvidedPrograms.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
import type { ASTMaps } from './convert';
|
|
3
|
-
import type { ParserServices } from './parser-options';
|
|
4
|
-
export declare function createParserServices(astMaps: ASTMaps, program: ts.Program | null): ParserServices;
|
|
5
|
-
//# sourceMappingURL=createParserServices.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
export declare function getModifiers(node: ts.Node | null | undefined, includeIllegalModifiers?: boolean): ts.Modifier[] | undefined;
|
|
3
|
-
export declare function getDecorators(node: ts.Node | null | undefined, includeIllegalDecorators?: boolean): ts.Decorator[] | undefined;
|
|
4
|
-
//# sourceMappingURL=getModifiers.d.ts.map
|
package/_ts4.3/dist/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, } from './parser';
|
|
2
|
-
export { ParserServices, ParserServicesWithTypeInformation, ParserServicesWithoutTypeInformation, TSESTreeOptions, } from './parser-options';
|
|
3
|
-
export { simpleTraverse } from './simple-traverse';
|
|
4
|
-
export * from './ts-estree';
|
|
5
|
-
export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms';
|
|
6
|
-
export * from './create-program/getScriptKind';
|
|
7
|
-
export { getCanonicalFileName } from './create-program/shared';
|
|
8
|
-
export { typescriptVersionIsAtLeast } from './version-check';
|
|
9
|
-
export * from './getModifiers';
|
|
10
|
-
export { TSError } from './node-utils';
|
|
11
|
-
export * from './clear-caches';
|
|
12
|
-
export declare const version: string;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|