@typescript-eslint/typescript-estree 6.2.2-alpha.0 → 6.2.2-alpha.10
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/parser.js.map +1 -1
- package/dist/simple-traverse.d.ts +1 -3
- package/dist/simple-traverse.d.ts.map +1 -1
- package/dist/simple-traverse.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 -14
- 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,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,14 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
declare module 'typescript' {
|
|
3
|
-
interface AssertClause extends ts.Node {
|
|
4
|
-
}
|
|
5
|
-
interface AssertEntry extends ts.Node {
|
|
6
|
-
}
|
|
7
|
-
interface SatisfiesExpression extends ts.Node {
|
|
8
|
-
}
|
|
9
|
-
interface JsxNamespacedName extends ts.Node {
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export type TSToken = ts.Token<ts.SyntaxKind>;
|
|
13
|
-
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;
|
|
14
|
-
//# 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
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { server } from 'typescript/lib/tsserverlibrary';
|
|
2
|
-
import type { ASTAndDefiniteProgram } from './create-program/shared';
|
|
3
|
-
import type { MutableParseSettings } from './parseSettings';
|
|
4
|
-
export declare function useProgramFromProjectService(projectService: server.ProjectService, parseSettings: Readonly<MutableParseSettings>): ASTAndDefiniteProgram | undefined;
|
|
5
|
-
//# sourceMappingURL=useProgramFromProjectService.d.ts.map
|