@typescript-eslint/typescript-estree 6.2.2-alpha.0 → 6.2.2-alpha.11

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.
Files changed (43) hide show
  1. package/dist/parser.js.map +1 -1
  2. package/dist/simple-traverse.d.ts +1 -3
  3. package/dist/simple-traverse.d.ts.map +1 -1
  4. package/dist/simple-traverse.js.map +1 -1
  5. package/package.json +4 -4
  6. package/_ts4.3/dist/ast-converter.d.ts +0 -9
  7. package/_ts4.3/dist/clear-caches.d.ts +0 -10
  8. package/_ts4.3/dist/convert-comments.d.ts +0 -11
  9. package/_ts4.3/dist/convert.d.ts +0 -142
  10. package/_ts4.3/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +0 -13
  11. package/_ts4.3/dist/create-program/createDefaultProgram.d.ts +0 -12
  12. package/_ts4.3/dist/create-program/createIsolatedProgram.d.ts +0 -9
  13. package/_ts4.3/dist/create-program/createProjectProgram.d.ts +0 -10
  14. package/_ts4.3/dist/create-program/createProjectService.d.ts +0 -4
  15. package/_ts4.3/dist/create-program/createSourceFile.d.ts +0 -7
  16. package/_ts4.3/dist/create-program/describeFilePath.d.ts +0 -2
  17. package/_ts4.3/dist/create-program/getScriptKind.d.ts +0 -5
  18. package/_ts4.3/dist/create-program/getWatchProgramsForProjects.d.ts +0 -15
  19. package/_ts4.3/dist/create-program/shared.d.ts +0 -32
  20. package/_ts4.3/dist/create-program/useProvidedPrograms.d.ts +0 -16
  21. package/_ts4.3/dist/createParserServices.d.ts +0 -5
  22. package/_ts4.3/dist/getModifiers.d.ts +0 -4
  23. package/_ts4.3/dist/index.d.ts +0 -13
  24. package/_ts4.3/dist/jsx/xhtml-entities.d.ts +0 -2
  25. package/_ts4.3/dist/node-utils.d.ts +0 -254
  26. package/_ts4.3/dist/parseSettings/ExpiringCache.d.ts +0 -17
  27. package/_ts4.3/dist/parseSettings/createParseSettings.d.ts +0 -7
  28. package/_ts4.3/dist/parseSettings/getProjectConfigFiles.d.ts +0 -12
  29. package/_ts4.3/dist/parseSettings/index.d.ts +0 -122
  30. package/_ts4.3/dist/parseSettings/inferSingleRun.d.ts +0 -15
  31. package/_ts4.3/dist/parseSettings/resolveProjectList.d.ts +0 -19
  32. package/_ts4.3/dist/parseSettings/warnAboutTSVersion.d.ts +0 -3
  33. package/_ts4.3/dist/parser-options.d.ts +0 -192
  34. package/_ts4.3/dist/parser.d.ts +0 -20
  35. package/_ts4.3/dist/semantic-or-syntactic-errors.d.ts +0 -13
  36. package/_ts4.3/dist/simple-traverse.d.ts +0 -14
  37. package/_ts4.3/dist/source-files.d.ts +0 -4
  38. package/_ts4.3/dist/ts-estree/estree-to-ts-node-types.d.ts +0 -178
  39. package/_ts4.3/dist/ts-estree/index.d.ts +0 -4
  40. package/_ts4.3/dist/ts-estree/ts-nodes.d.ts +0 -14
  41. package/_ts4.3/dist/use-at-your-own-risk.d.ts +0 -7
  42. package/_ts4.3/dist/useProgramFromProjectService.d.ts +0 -5
  43. package/_ts4.3/dist/version-check.d.ts +0 -3
@@ -1 +1 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,mDAA+C;AAC/C,uCAAyC;AACzC,gFAA6E;AAC7E,kFAA+E;AAC/E,gFAA6E;AAC7E,wEAG2C;AAC3C,8FAA2F;AAE3F,8EAG8C;AAC9C,iEAA8D;AAO9D,6EAA0E;AAC1E,iFAAkF;AAElF,iFAA8E;AAE9E,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,4CAA4C,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAA6B,CAAC;AAC9D,SAAS,iBAAiB;IACxB,gBAAgB,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AA0PC,8CAAiB;AAxPnB;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,aAA4B,EAC5B,sBAA+B;IAE/B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AAE;YACT,MAAM,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAC;SAC3B;KACF;IAED;;OAEG;IACH,OAAO;QACL,GAAG,EAAE,MAAgB;QACrB,QAAQ,EAAE,IAAA,2CAAoB,EAAC,OAAO,EAAE,OAAO,CAAC;KACjD,CAAC;AACJ,CAAC;AAKC,4DAAwB"}
@@ -5,9 +5,7 @@ type SimpleTraverseOptions = Readonly<{
5
5
  enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void;
6
6
  } | {
7
7
  visitorKeys?: Readonly<VisitorKeys>;
8
- visitors: {
9
- [key: string]: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void;
10
- };
8
+ visitors: Record<string, (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void>;
11
9
  }>;
12
10
  export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void;
13
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"simple-traverse.d.ts","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmB5C,KAAK,qBAAqB,GAAG,QAAQ,CACjC;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;CACzE,GACD;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,QAAQ,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,CACb,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAC9B,IAAI,CAAC;KACX,CAAC;CACH,CACJ,CAAC;AAiDF,wBAAgB,cAAc,CAC5B,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,iBAAiB,UAAQ,GACxB,IAAI,CAKN"}
1
+ {"version":3,"file":"simple-traverse.d.ts","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmB5C,KAAK,qBAAqB,GAAG,QAAQ,CACjC;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;CACzE,GACD;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CACd,MAAM,EACN,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CACjE,CAAC;CACH,CACJ,CAAC;AAiDF,wBAAgB,cAAc,CAC5B,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,iBAAiB,UAAQ,GACxB,IAAI,CAKN"}
@@ -1 +1 @@
1
- {"version":3,"file":"simple-traverse.js","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":";;;AACA,kEAA8D;AAI9D,SAAS,WAAW,CAAC,CAAU;IAC7B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ;QACrB,CAAC,IAAI,IAAI;QACT,MAAM,IAAI,CAAC;QACX,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAC3B,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAC5B,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
- "version": "6.2.2-alpha.0+948b06146",
3
+ "version": "6.2.2-alpha.11+835275960",
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.2.2-alpha.0+948b06146",
56
- "@typescript-eslint/visitor-keys": "6.2.2-alpha.0+948b06146",
55
+ "@typescript-eslint/types": "6.2.2-alpha.11+835275960",
56
+ "@typescript-eslint/visitor-keys": "6.2.2-alpha.11+835275960",
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": "948b0614626c1c737ec30106425ef4a9b8c33dbf"
88
+ "gitHead": "835275960932f7d785012128f6382169c1b4b715"
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
@@ -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,4 +0,0 @@
1
- import type * as ts from 'typescript/lib/tsserverlibrary';
2
- export type TypeScriptProjectService = ts.server.ProjectService;
3
- export declare function createProjectService(): TypeScriptProjectService;
4
- //# sourceMappingURL=createProjectService.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,2 +0,0 @@
1
- export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string;
2
- //# sourceMappingURL=describeFilePath.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
@@ -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
@@ -1,2 +0,0 @@
1
- export declare const xhtmlEntities: Record<string, string>;
2
- //# sourceMappingURL=xhtml-entities.d.ts.map