typescript 5.1.0-dev.20230407 → 5.1.0-dev.20230408
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/lib/tsc.js +7491 -7482
- package/lib/tsserver.js +10970 -10453
- package/lib/tsserverlibrary.d.ts +465 -383
- package/lib/tsserverlibrary.js +11031 -10480
- package/lib/typescript.d.ts +405 -383
- package/lib/typescript.js +10489 -10434
- package/lib/typingsInstaller.js +3024 -3014
- package/package.json +2 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -51,395 +51,396 @@ declare namespace ts {
|
|
|
51
51
|
WhitespaceTrivia = 5,
|
|
52
52
|
ShebangTrivia = 6,
|
|
53
53
|
ConflictMarkerTrivia = 7,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
54
|
+
NonTextFileMarkerTrivia = 8,
|
|
55
|
+
NumericLiteral = 9,
|
|
56
|
+
BigIntLiteral = 10,
|
|
57
|
+
StringLiteral = 11,
|
|
58
|
+
JsxText = 12,
|
|
59
|
+
JsxTextAllWhiteSpaces = 13,
|
|
60
|
+
RegularExpressionLiteral = 14,
|
|
61
|
+
NoSubstitutionTemplateLiteral = 15,
|
|
62
|
+
TemplateHead = 16,
|
|
63
|
+
TemplateMiddle = 17,
|
|
64
|
+
TemplateTail = 18,
|
|
65
|
+
OpenBraceToken = 19,
|
|
66
|
+
CloseBraceToken = 20,
|
|
67
|
+
OpenParenToken = 21,
|
|
68
|
+
CloseParenToken = 22,
|
|
69
|
+
OpenBracketToken = 23,
|
|
70
|
+
CloseBracketToken = 24,
|
|
71
|
+
DotToken = 25,
|
|
72
|
+
DotDotDotToken = 26,
|
|
73
|
+
SemicolonToken = 27,
|
|
74
|
+
CommaToken = 28,
|
|
75
|
+
QuestionDotToken = 29,
|
|
76
|
+
LessThanToken = 30,
|
|
77
|
+
LessThanSlashToken = 31,
|
|
78
|
+
GreaterThanToken = 32,
|
|
79
|
+
LessThanEqualsToken = 33,
|
|
80
|
+
GreaterThanEqualsToken = 34,
|
|
81
|
+
EqualsEqualsToken = 35,
|
|
82
|
+
ExclamationEqualsToken = 36,
|
|
83
|
+
EqualsEqualsEqualsToken = 37,
|
|
84
|
+
ExclamationEqualsEqualsToken = 38,
|
|
85
|
+
EqualsGreaterThanToken = 39,
|
|
86
|
+
PlusToken = 40,
|
|
87
|
+
MinusToken = 41,
|
|
88
|
+
AsteriskToken = 42,
|
|
89
|
+
AsteriskAsteriskToken = 43,
|
|
90
|
+
SlashToken = 44,
|
|
91
|
+
PercentToken = 45,
|
|
92
|
+
PlusPlusToken = 46,
|
|
93
|
+
MinusMinusToken = 47,
|
|
94
|
+
LessThanLessThanToken = 48,
|
|
95
|
+
GreaterThanGreaterThanToken = 49,
|
|
96
|
+
GreaterThanGreaterThanGreaterThanToken = 50,
|
|
97
|
+
AmpersandToken = 51,
|
|
98
|
+
BarToken = 52,
|
|
99
|
+
CaretToken = 53,
|
|
100
|
+
ExclamationToken = 54,
|
|
101
|
+
TildeToken = 55,
|
|
102
|
+
AmpersandAmpersandToken = 56,
|
|
103
|
+
BarBarToken = 57,
|
|
104
|
+
QuestionToken = 58,
|
|
105
|
+
ColonToken = 59,
|
|
106
|
+
AtToken = 60,
|
|
107
|
+
QuestionQuestionToken = 61,
|
|
107
108
|
/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTemplateLiteral and related kinds. */
|
|
108
|
-
BacktickToken =
|
|
109
|
+
BacktickToken = 62,
|
|
109
110
|
/** Only the JSDoc scanner produces HashToken. The normal scanner produces PrivateIdentifier. */
|
|
110
|
-
HashToken =
|
|
111
|
-
EqualsToken =
|
|
112
|
-
PlusEqualsToken =
|
|
113
|
-
MinusEqualsToken =
|
|
114
|
-
AsteriskEqualsToken =
|
|
115
|
-
AsteriskAsteriskEqualsToken =
|
|
116
|
-
SlashEqualsToken =
|
|
117
|
-
PercentEqualsToken =
|
|
118
|
-
LessThanLessThanEqualsToken =
|
|
119
|
-
GreaterThanGreaterThanEqualsToken =
|
|
120
|
-
GreaterThanGreaterThanGreaterThanEqualsToken =
|
|
121
|
-
AmpersandEqualsToken =
|
|
122
|
-
BarEqualsToken =
|
|
123
|
-
BarBarEqualsToken =
|
|
124
|
-
AmpersandAmpersandEqualsToken =
|
|
125
|
-
QuestionQuestionEqualsToken =
|
|
126
|
-
CaretEqualsToken =
|
|
127
|
-
Identifier =
|
|
128
|
-
PrivateIdentifier =
|
|
129
|
-
BreakKeyword =
|
|
130
|
-
CaseKeyword =
|
|
131
|
-
CatchKeyword =
|
|
132
|
-
ClassKeyword =
|
|
133
|
-
ConstKeyword =
|
|
134
|
-
ContinueKeyword =
|
|
135
|
-
DebuggerKeyword =
|
|
136
|
-
DefaultKeyword =
|
|
137
|
-
DeleteKeyword =
|
|
138
|
-
DoKeyword =
|
|
139
|
-
ElseKeyword =
|
|
140
|
-
EnumKeyword =
|
|
141
|
-
ExportKeyword =
|
|
142
|
-
ExtendsKeyword =
|
|
143
|
-
FalseKeyword =
|
|
144
|
-
FinallyKeyword =
|
|
145
|
-
ForKeyword =
|
|
146
|
-
FunctionKeyword =
|
|
147
|
-
IfKeyword =
|
|
148
|
-
ImportKeyword =
|
|
149
|
-
InKeyword =
|
|
150
|
-
InstanceOfKeyword =
|
|
151
|
-
NewKeyword =
|
|
152
|
-
NullKeyword =
|
|
153
|
-
ReturnKeyword =
|
|
154
|
-
SuperKeyword =
|
|
155
|
-
SwitchKeyword =
|
|
156
|
-
ThisKeyword =
|
|
157
|
-
ThrowKeyword =
|
|
158
|
-
TrueKeyword =
|
|
159
|
-
TryKeyword =
|
|
160
|
-
TypeOfKeyword =
|
|
161
|
-
VarKeyword =
|
|
162
|
-
VoidKeyword =
|
|
163
|
-
WhileKeyword =
|
|
164
|
-
WithKeyword =
|
|
165
|
-
ImplementsKeyword =
|
|
166
|
-
InterfaceKeyword =
|
|
167
|
-
LetKeyword =
|
|
168
|
-
PackageKeyword =
|
|
169
|
-
PrivateKeyword =
|
|
170
|
-
ProtectedKeyword =
|
|
171
|
-
PublicKeyword =
|
|
172
|
-
StaticKeyword =
|
|
173
|
-
YieldKeyword =
|
|
174
|
-
AbstractKeyword =
|
|
175
|
-
AccessorKeyword =
|
|
176
|
-
AsKeyword =
|
|
177
|
-
AssertsKeyword =
|
|
178
|
-
AssertKeyword =
|
|
179
|
-
AnyKeyword =
|
|
180
|
-
AsyncKeyword =
|
|
181
|
-
AwaitKeyword =
|
|
182
|
-
BooleanKeyword =
|
|
183
|
-
ConstructorKeyword =
|
|
184
|
-
DeclareKeyword =
|
|
185
|
-
GetKeyword =
|
|
186
|
-
InferKeyword =
|
|
187
|
-
IntrinsicKeyword =
|
|
188
|
-
IsKeyword =
|
|
189
|
-
KeyOfKeyword =
|
|
190
|
-
ModuleKeyword =
|
|
191
|
-
NamespaceKeyword =
|
|
192
|
-
NeverKeyword =
|
|
193
|
-
OutKeyword =
|
|
194
|
-
ReadonlyKeyword =
|
|
195
|
-
RequireKeyword =
|
|
196
|
-
NumberKeyword =
|
|
197
|
-
ObjectKeyword =
|
|
198
|
-
SatisfiesKeyword =
|
|
199
|
-
SetKeyword =
|
|
200
|
-
StringKeyword =
|
|
201
|
-
SymbolKeyword =
|
|
202
|
-
TypeKeyword =
|
|
203
|
-
UndefinedKeyword =
|
|
204
|
-
UniqueKeyword =
|
|
205
|
-
UnknownKeyword =
|
|
206
|
-
FromKeyword =
|
|
207
|
-
GlobalKeyword =
|
|
208
|
-
BigIntKeyword =
|
|
209
|
-
OverrideKeyword =
|
|
210
|
-
OfKeyword =
|
|
211
|
-
QualifiedName =
|
|
212
|
-
ComputedPropertyName =
|
|
213
|
-
TypeParameter =
|
|
214
|
-
Parameter =
|
|
215
|
-
Decorator =
|
|
216
|
-
PropertySignature =
|
|
217
|
-
PropertyDeclaration =
|
|
218
|
-
MethodSignature =
|
|
219
|
-
MethodDeclaration =
|
|
220
|
-
ClassStaticBlockDeclaration =
|
|
221
|
-
Constructor =
|
|
222
|
-
GetAccessor =
|
|
223
|
-
SetAccessor =
|
|
224
|
-
CallSignature =
|
|
225
|
-
ConstructSignature =
|
|
226
|
-
IndexSignature =
|
|
227
|
-
TypePredicate =
|
|
228
|
-
TypeReference =
|
|
229
|
-
FunctionType =
|
|
230
|
-
ConstructorType =
|
|
231
|
-
TypeQuery =
|
|
232
|
-
TypeLiteral =
|
|
233
|
-
ArrayType =
|
|
234
|
-
TupleType =
|
|
235
|
-
OptionalType =
|
|
236
|
-
RestType =
|
|
237
|
-
UnionType =
|
|
238
|
-
IntersectionType =
|
|
239
|
-
ConditionalType =
|
|
240
|
-
InferType =
|
|
241
|
-
ParenthesizedType =
|
|
242
|
-
ThisType =
|
|
243
|
-
TypeOperator =
|
|
244
|
-
IndexedAccessType =
|
|
245
|
-
MappedType =
|
|
246
|
-
LiteralType =
|
|
247
|
-
NamedTupleMember =
|
|
248
|
-
TemplateLiteralType =
|
|
249
|
-
TemplateLiteralTypeSpan =
|
|
250
|
-
ImportType =
|
|
251
|
-
ObjectBindingPattern =
|
|
252
|
-
ArrayBindingPattern =
|
|
253
|
-
BindingElement =
|
|
254
|
-
ArrayLiteralExpression =
|
|
255
|
-
ObjectLiteralExpression =
|
|
256
|
-
PropertyAccessExpression =
|
|
257
|
-
ElementAccessExpression =
|
|
258
|
-
CallExpression =
|
|
259
|
-
NewExpression =
|
|
260
|
-
TaggedTemplateExpression =
|
|
261
|
-
TypeAssertionExpression =
|
|
262
|
-
ParenthesizedExpression =
|
|
263
|
-
FunctionExpression =
|
|
264
|
-
ArrowFunction =
|
|
265
|
-
DeleteExpression =
|
|
266
|
-
TypeOfExpression =
|
|
267
|
-
VoidExpression =
|
|
268
|
-
AwaitExpression =
|
|
269
|
-
PrefixUnaryExpression =
|
|
270
|
-
PostfixUnaryExpression =
|
|
271
|
-
BinaryExpression =
|
|
272
|
-
ConditionalExpression =
|
|
273
|
-
TemplateExpression =
|
|
274
|
-
YieldExpression =
|
|
275
|
-
SpreadElement =
|
|
276
|
-
ClassExpression =
|
|
277
|
-
OmittedExpression =
|
|
278
|
-
ExpressionWithTypeArguments =
|
|
279
|
-
AsExpression =
|
|
280
|
-
NonNullExpression =
|
|
281
|
-
MetaProperty =
|
|
282
|
-
SyntheticExpression =
|
|
283
|
-
SatisfiesExpression =
|
|
284
|
-
TemplateSpan =
|
|
285
|
-
SemicolonClassElement =
|
|
286
|
-
Block =
|
|
287
|
-
EmptyStatement =
|
|
288
|
-
VariableStatement =
|
|
289
|
-
ExpressionStatement =
|
|
290
|
-
IfStatement =
|
|
291
|
-
DoStatement =
|
|
292
|
-
WhileStatement =
|
|
293
|
-
ForStatement =
|
|
294
|
-
ForInStatement =
|
|
295
|
-
ForOfStatement =
|
|
296
|
-
ContinueStatement =
|
|
297
|
-
BreakStatement =
|
|
298
|
-
ReturnStatement =
|
|
299
|
-
WithStatement =
|
|
300
|
-
SwitchStatement =
|
|
301
|
-
LabeledStatement =
|
|
302
|
-
ThrowStatement =
|
|
303
|
-
TryStatement =
|
|
304
|
-
DebuggerStatement =
|
|
305
|
-
VariableDeclaration =
|
|
306
|
-
VariableDeclarationList =
|
|
307
|
-
FunctionDeclaration =
|
|
308
|
-
ClassDeclaration =
|
|
309
|
-
InterfaceDeclaration =
|
|
310
|
-
TypeAliasDeclaration =
|
|
311
|
-
EnumDeclaration =
|
|
312
|
-
ModuleDeclaration =
|
|
313
|
-
ModuleBlock =
|
|
314
|
-
CaseBlock =
|
|
315
|
-
NamespaceExportDeclaration =
|
|
316
|
-
ImportEqualsDeclaration =
|
|
317
|
-
ImportDeclaration =
|
|
318
|
-
ImportClause =
|
|
319
|
-
NamespaceImport =
|
|
320
|
-
NamedImports =
|
|
321
|
-
ImportSpecifier =
|
|
322
|
-
ExportAssignment =
|
|
323
|
-
ExportDeclaration =
|
|
324
|
-
NamedExports =
|
|
325
|
-
NamespaceExport =
|
|
326
|
-
ExportSpecifier =
|
|
327
|
-
MissingDeclaration =
|
|
328
|
-
ExternalModuleReference =
|
|
329
|
-
JsxElement =
|
|
330
|
-
JsxSelfClosingElement =
|
|
331
|
-
JsxOpeningElement =
|
|
332
|
-
JsxClosingElement =
|
|
333
|
-
JsxFragment =
|
|
334
|
-
JsxOpeningFragment =
|
|
335
|
-
JsxClosingFragment =
|
|
336
|
-
JsxAttribute =
|
|
337
|
-
JsxAttributes =
|
|
338
|
-
JsxSpreadAttribute =
|
|
339
|
-
JsxExpression =
|
|
340
|
-
CaseClause =
|
|
341
|
-
DefaultClause =
|
|
342
|
-
HeritageClause =
|
|
343
|
-
CatchClause =
|
|
344
|
-
AssertClause =
|
|
345
|
-
AssertEntry =
|
|
346
|
-
ImportTypeAssertionContainer =
|
|
347
|
-
PropertyAssignment =
|
|
348
|
-
ShorthandPropertyAssignment =
|
|
349
|
-
SpreadAssignment =
|
|
350
|
-
EnumMember =
|
|
351
|
-
/** @deprecated */ UnparsedPrologue =
|
|
352
|
-
/** @deprecated */ UnparsedPrepend =
|
|
353
|
-
/** @deprecated */ UnparsedText =
|
|
354
|
-
/** @deprecated */ UnparsedInternalText =
|
|
355
|
-
/** @deprecated */ UnparsedSyntheticReference =
|
|
356
|
-
SourceFile =
|
|
357
|
-
Bundle =
|
|
358
|
-
/** @deprecated */ UnparsedSource =
|
|
359
|
-
/** @deprecated */ InputFiles =
|
|
360
|
-
JSDocTypeExpression =
|
|
361
|
-
JSDocNameReference =
|
|
362
|
-
JSDocMemberName =
|
|
363
|
-
JSDocAllType =
|
|
364
|
-
JSDocUnknownType =
|
|
365
|
-
JSDocNullableType =
|
|
366
|
-
JSDocNonNullableType =
|
|
367
|
-
JSDocOptionalType =
|
|
368
|
-
JSDocFunctionType =
|
|
369
|
-
JSDocVariadicType =
|
|
370
|
-
JSDocNamepathType =
|
|
371
|
-
JSDoc =
|
|
111
|
+
HashToken = 63,
|
|
112
|
+
EqualsToken = 64,
|
|
113
|
+
PlusEqualsToken = 65,
|
|
114
|
+
MinusEqualsToken = 66,
|
|
115
|
+
AsteriskEqualsToken = 67,
|
|
116
|
+
AsteriskAsteriskEqualsToken = 68,
|
|
117
|
+
SlashEqualsToken = 69,
|
|
118
|
+
PercentEqualsToken = 70,
|
|
119
|
+
LessThanLessThanEqualsToken = 71,
|
|
120
|
+
GreaterThanGreaterThanEqualsToken = 72,
|
|
121
|
+
GreaterThanGreaterThanGreaterThanEqualsToken = 73,
|
|
122
|
+
AmpersandEqualsToken = 74,
|
|
123
|
+
BarEqualsToken = 75,
|
|
124
|
+
BarBarEqualsToken = 76,
|
|
125
|
+
AmpersandAmpersandEqualsToken = 77,
|
|
126
|
+
QuestionQuestionEqualsToken = 78,
|
|
127
|
+
CaretEqualsToken = 79,
|
|
128
|
+
Identifier = 80,
|
|
129
|
+
PrivateIdentifier = 81,
|
|
130
|
+
BreakKeyword = 83,
|
|
131
|
+
CaseKeyword = 84,
|
|
132
|
+
CatchKeyword = 85,
|
|
133
|
+
ClassKeyword = 86,
|
|
134
|
+
ConstKeyword = 87,
|
|
135
|
+
ContinueKeyword = 88,
|
|
136
|
+
DebuggerKeyword = 89,
|
|
137
|
+
DefaultKeyword = 90,
|
|
138
|
+
DeleteKeyword = 91,
|
|
139
|
+
DoKeyword = 92,
|
|
140
|
+
ElseKeyword = 93,
|
|
141
|
+
EnumKeyword = 94,
|
|
142
|
+
ExportKeyword = 95,
|
|
143
|
+
ExtendsKeyword = 96,
|
|
144
|
+
FalseKeyword = 97,
|
|
145
|
+
FinallyKeyword = 98,
|
|
146
|
+
ForKeyword = 99,
|
|
147
|
+
FunctionKeyword = 100,
|
|
148
|
+
IfKeyword = 101,
|
|
149
|
+
ImportKeyword = 102,
|
|
150
|
+
InKeyword = 103,
|
|
151
|
+
InstanceOfKeyword = 104,
|
|
152
|
+
NewKeyword = 105,
|
|
153
|
+
NullKeyword = 106,
|
|
154
|
+
ReturnKeyword = 107,
|
|
155
|
+
SuperKeyword = 108,
|
|
156
|
+
SwitchKeyword = 109,
|
|
157
|
+
ThisKeyword = 110,
|
|
158
|
+
ThrowKeyword = 111,
|
|
159
|
+
TrueKeyword = 112,
|
|
160
|
+
TryKeyword = 113,
|
|
161
|
+
TypeOfKeyword = 114,
|
|
162
|
+
VarKeyword = 115,
|
|
163
|
+
VoidKeyword = 116,
|
|
164
|
+
WhileKeyword = 117,
|
|
165
|
+
WithKeyword = 118,
|
|
166
|
+
ImplementsKeyword = 119,
|
|
167
|
+
InterfaceKeyword = 120,
|
|
168
|
+
LetKeyword = 121,
|
|
169
|
+
PackageKeyword = 122,
|
|
170
|
+
PrivateKeyword = 123,
|
|
171
|
+
ProtectedKeyword = 124,
|
|
172
|
+
PublicKeyword = 125,
|
|
173
|
+
StaticKeyword = 126,
|
|
174
|
+
YieldKeyword = 127,
|
|
175
|
+
AbstractKeyword = 128,
|
|
176
|
+
AccessorKeyword = 129,
|
|
177
|
+
AsKeyword = 130,
|
|
178
|
+
AssertsKeyword = 131,
|
|
179
|
+
AssertKeyword = 132,
|
|
180
|
+
AnyKeyword = 133,
|
|
181
|
+
AsyncKeyword = 134,
|
|
182
|
+
AwaitKeyword = 135,
|
|
183
|
+
BooleanKeyword = 136,
|
|
184
|
+
ConstructorKeyword = 137,
|
|
185
|
+
DeclareKeyword = 138,
|
|
186
|
+
GetKeyword = 139,
|
|
187
|
+
InferKeyword = 140,
|
|
188
|
+
IntrinsicKeyword = 141,
|
|
189
|
+
IsKeyword = 142,
|
|
190
|
+
KeyOfKeyword = 143,
|
|
191
|
+
ModuleKeyword = 144,
|
|
192
|
+
NamespaceKeyword = 145,
|
|
193
|
+
NeverKeyword = 146,
|
|
194
|
+
OutKeyword = 147,
|
|
195
|
+
ReadonlyKeyword = 148,
|
|
196
|
+
RequireKeyword = 149,
|
|
197
|
+
NumberKeyword = 150,
|
|
198
|
+
ObjectKeyword = 151,
|
|
199
|
+
SatisfiesKeyword = 152,
|
|
200
|
+
SetKeyword = 153,
|
|
201
|
+
StringKeyword = 154,
|
|
202
|
+
SymbolKeyword = 155,
|
|
203
|
+
TypeKeyword = 156,
|
|
204
|
+
UndefinedKeyword = 157,
|
|
205
|
+
UniqueKeyword = 158,
|
|
206
|
+
UnknownKeyword = 159,
|
|
207
|
+
FromKeyword = 160,
|
|
208
|
+
GlobalKeyword = 161,
|
|
209
|
+
BigIntKeyword = 162,
|
|
210
|
+
OverrideKeyword = 163,
|
|
211
|
+
OfKeyword = 164,
|
|
212
|
+
QualifiedName = 165,
|
|
213
|
+
ComputedPropertyName = 166,
|
|
214
|
+
TypeParameter = 167,
|
|
215
|
+
Parameter = 168,
|
|
216
|
+
Decorator = 169,
|
|
217
|
+
PropertySignature = 170,
|
|
218
|
+
PropertyDeclaration = 171,
|
|
219
|
+
MethodSignature = 172,
|
|
220
|
+
MethodDeclaration = 173,
|
|
221
|
+
ClassStaticBlockDeclaration = 174,
|
|
222
|
+
Constructor = 175,
|
|
223
|
+
GetAccessor = 176,
|
|
224
|
+
SetAccessor = 177,
|
|
225
|
+
CallSignature = 178,
|
|
226
|
+
ConstructSignature = 179,
|
|
227
|
+
IndexSignature = 180,
|
|
228
|
+
TypePredicate = 181,
|
|
229
|
+
TypeReference = 182,
|
|
230
|
+
FunctionType = 183,
|
|
231
|
+
ConstructorType = 184,
|
|
232
|
+
TypeQuery = 185,
|
|
233
|
+
TypeLiteral = 186,
|
|
234
|
+
ArrayType = 187,
|
|
235
|
+
TupleType = 188,
|
|
236
|
+
OptionalType = 189,
|
|
237
|
+
RestType = 190,
|
|
238
|
+
UnionType = 191,
|
|
239
|
+
IntersectionType = 192,
|
|
240
|
+
ConditionalType = 193,
|
|
241
|
+
InferType = 194,
|
|
242
|
+
ParenthesizedType = 195,
|
|
243
|
+
ThisType = 196,
|
|
244
|
+
TypeOperator = 197,
|
|
245
|
+
IndexedAccessType = 198,
|
|
246
|
+
MappedType = 199,
|
|
247
|
+
LiteralType = 200,
|
|
248
|
+
NamedTupleMember = 201,
|
|
249
|
+
TemplateLiteralType = 202,
|
|
250
|
+
TemplateLiteralTypeSpan = 203,
|
|
251
|
+
ImportType = 204,
|
|
252
|
+
ObjectBindingPattern = 205,
|
|
253
|
+
ArrayBindingPattern = 206,
|
|
254
|
+
BindingElement = 207,
|
|
255
|
+
ArrayLiteralExpression = 208,
|
|
256
|
+
ObjectLiteralExpression = 209,
|
|
257
|
+
PropertyAccessExpression = 210,
|
|
258
|
+
ElementAccessExpression = 211,
|
|
259
|
+
CallExpression = 212,
|
|
260
|
+
NewExpression = 213,
|
|
261
|
+
TaggedTemplateExpression = 214,
|
|
262
|
+
TypeAssertionExpression = 215,
|
|
263
|
+
ParenthesizedExpression = 216,
|
|
264
|
+
FunctionExpression = 217,
|
|
265
|
+
ArrowFunction = 218,
|
|
266
|
+
DeleteExpression = 219,
|
|
267
|
+
TypeOfExpression = 220,
|
|
268
|
+
VoidExpression = 221,
|
|
269
|
+
AwaitExpression = 222,
|
|
270
|
+
PrefixUnaryExpression = 223,
|
|
271
|
+
PostfixUnaryExpression = 224,
|
|
272
|
+
BinaryExpression = 225,
|
|
273
|
+
ConditionalExpression = 226,
|
|
274
|
+
TemplateExpression = 227,
|
|
275
|
+
YieldExpression = 228,
|
|
276
|
+
SpreadElement = 229,
|
|
277
|
+
ClassExpression = 230,
|
|
278
|
+
OmittedExpression = 231,
|
|
279
|
+
ExpressionWithTypeArguments = 232,
|
|
280
|
+
AsExpression = 233,
|
|
281
|
+
NonNullExpression = 234,
|
|
282
|
+
MetaProperty = 235,
|
|
283
|
+
SyntheticExpression = 236,
|
|
284
|
+
SatisfiesExpression = 237,
|
|
285
|
+
TemplateSpan = 238,
|
|
286
|
+
SemicolonClassElement = 239,
|
|
287
|
+
Block = 240,
|
|
288
|
+
EmptyStatement = 241,
|
|
289
|
+
VariableStatement = 242,
|
|
290
|
+
ExpressionStatement = 243,
|
|
291
|
+
IfStatement = 244,
|
|
292
|
+
DoStatement = 245,
|
|
293
|
+
WhileStatement = 246,
|
|
294
|
+
ForStatement = 247,
|
|
295
|
+
ForInStatement = 248,
|
|
296
|
+
ForOfStatement = 249,
|
|
297
|
+
ContinueStatement = 250,
|
|
298
|
+
BreakStatement = 251,
|
|
299
|
+
ReturnStatement = 252,
|
|
300
|
+
WithStatement = 253,
|
|
301
|
+
SwitchStatement = 254,
|
|
302
|
+
LabeledStatement = 255,
|
|
303
|
+
ThrowStatement = 256,
|
|
304
|
+
TryStatement = 257,
|
|
305
|
+
DebuggerStatement = 258,
|
|
306
|
+
VariableDeclaration = 259,
|
|
307
|
+
VariableDeclarationList = 260,
|
|
308
|
+
FunctionDeclaration = 261,
|
|
309
|
+
ClassDeclaration = 262,
|
|
310
|
+
InterfaceDeclaration = 263,
|
|
311
|
+
TypeAliasDeclaration = 264,
|
|
312
|
+
EnumDeclaration = 265,
|
|
313
|
+
ModuleDeclaration = 266,
|
|
314
|
+
ModuleBlock = 267,
|
|
315
|
+
CaseBlock = 268,
|
|
316
|
+
NamespaceExportDeclaration = 269,
|
|
317
|
+
ImportEqualsDeclaration = 270,
|
|
318
|
+
ImportDeclaration = 271,
|
|
319
|
+
ImportClause = 272,
|
|
320
|
+
NamespaceImport = 273,
|
|
321
|
+
NamedImports = 274,
|
|
322
|
+
ImportSpecifier = 275,
|
|
323
|
+
ExportAssignment = 276,
|
|
324
|
+
ExportDeclaration = 277,
|
|
325
|
+
NamedExports = 278,
|
|
326
|
+
NamespaceExport = 279,
|
|
327
|
+
ExportSpecifier = 280,
|
|
328
|
+
MissingDeclaration = 281,
|
|
329
|
+
ExternalModuleReference = 282,
|
|
330
|
+
JsxElement = 283,
|
|
331
|
+
JsxSelfClosingElement = 284,
|
|
332
|
+
JsxOpeningElement = 285,
|
|
333
|
+
JsxClosingElement = 286,
|
|
334
|
+
JsxFragment = 287,
|
|
335
|
+
JsxOpeningFragment = 288,
|
|
336
|
+
JsxClosingFragment = 289,
|
|
337
|
+
JsxAttribute = 290,
|
|
338
|
+
JsxAttributes = 291,
|
|
339
|
+
JsxSpreadAttribute = 292,
|
|
340
|
+
JsxExpression = 293,
|
|
341
|
+
CaseClause = 294,
|
|
342
|
+
DefaultClause = 295,
|
|
343
|
+
HeritageClause = 296,
|
|
344
|
+
CatchClause = 297,
|
|
345
|
+
AssertClause = 298,
|
|
346
|
+
AssertEntry = 299,
|
|
347
|
+
ImportTypeAssertionContainer = 300,
|
|
348
|
+
PropertyAssignment = 301,
|
|
349
|
+
ShorthandPropertyAssignment = 302,
|
|
350
|
+
SpreadAssignment = 303,
|
|
351
|
+
EnumMember = 304,
|
|
352
|
+
/** @deprecated */ UnparsedPrologue = 305,
|
|
353
|
+
/** @deprecated */ UnparsedPrepend = 306,
|
|
354
|
+
/** @deprecated */ UnparsedText = 307,
|
|
355
|
+
/** @deprecated */ UnparsedInternalText = 308,
|
|
356
|
+
/** @deprecated */ UnparsedSyntheticReference = 309,
|
|
357
|
+
SourceFile = 310,
|
|
358
|
+
Bundle = 311,
|
|
359
|
+
/** @deprecated */ UnparsedSource = 312,
|
|
360
|
+
/** @deprecated */ InputFiles = 313,
|
|
361
|
+
JSDocTypeExpression = 314,
|
|
362
|
+
JSDocNameReference = 315,
|
|
363
|
+
JSDocMemberName = 316,
|
|
364
|
+
JSDocAllType = 317,
|
|
365
|
+
JSDocUnknownType = 318,
|
|
366
|
+
JSDocNullableType = 319,
|
|
367
|
+
JSDocNonNullableType = 320,
|
|
368
|
+
JSDocOptionalType = 321,
|
|
369
|
+
JSDocFunctionType = 322,
|
|
370
|
+
JSDocVariadicType = 323,
|
|
371
|
+
JSDocNamepathType = 324,
|
|
372
|
+
JSDoc = 325,
|
|
372
373
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
373
|
-
JSDocComment =
|
|
374
|
-
JSDocText =
|
|
375
|
-
JSDocTypeLiteral =
|
|
376
|
-
JSDocSignature =
|
|
377
|
-
JSDocLink =
|
|
378
|
-
JSDocLinkCode =
|
|
379
|
-
JSDocLinkPlain =
|
|
380
|
-
JSDocTag =
|
|
381
|
-
JSDocAugmentsTag =
|
|
382
|
-
JSDocImplementsTag =
|
|
383
|
-
JSDocAuthorTag =
|
|
384
|
-
JSDocDeprecatedTag =
|
|
385
|
-
JSDocClassTag =
|
|
386
|
-
JSDocPublicTag =
|
|
387
|
-
JSDocPrivateTag =
|
|
388
|
-
JSDocProtectedTag =
|
|
389
|
-
JSDocReadonlyTag =
|
|
390
|
-
JSDocOverrideTag =
|
|
391
|
-
JSDocCallbackTag =
|
|
392
|
-
JSDocOverloadTag =
|
|
393
|
-
JSDocEnumTag =
|
|
394
|
-
JSDocParameterTag =
|
|
395
|
-
JSDocReturnTag =
|
|
396
|
-
JSDocThisTag =
|
|
397
|
-
JSDocTypeTag =
|
|
398
|
-
JSDocTemplateTag =
|
|
399
|
-
JSDocTypedefTag =
|
|
400
|
-
JSDocSeeTag =
|
|
401
|
-
JSDocPropertyTag =
|
|
402
|
-
JSDocThrowsTag =
|
|
403
|
-
JSDocSatisfiesTag =
|
|
404
|
-
SyntaxList =
|
|
405
|
-
NotEmittedStatement =
|
|
406
|
-
PartiallyEmittedExpression =
|
|
407
|
-
CommaListExpression =
|
|
408
|
-
MergeDeclarationMarker =
|
|
409
|
-
EndOfDeclarationMarker =
|
|
410
|
-
SyntheticReferenceExpression =
|
|
411
|
-
Count =
|
|
412
|
-
FirstAssignment =
|
|
413
|
-
LastAssignment =
|
|
414
|
-
FirstCompoundAssignment =
|
|
415
|
-
LastCompoundAssignment =
|
|
416
|
-
FirstReservedWord =
|
|
417
|
-
LastReservedWord =
|
|
418
|
-
FirstKeyword =
|
|
419
|
-
LastKeyword =
|
|
420
|
-
FirstFutureReservedWord =
|
|
421
|
-
LastFutureReservedWord =
|
|
422
|
-
FirstTypeNode =
|
|
423
|
-
LastTypeNode =
|
|
424
|
-
FirstPunctuation =
|
|
425
|
-
LastPunctuation =
|
|
374
|
+
JSDocComment = 325,
|
|
375
|
+
JSDocText = 326,
|
|
376
|
+
JSDocTypeLiteral = 327,
|
|
377
|
+
JSDocSignature = 328,
|
|
378
|
+
JSDocLink = 329,
|
|
379
|
+
JSDocLinkCode = 330,
|
|
380
|
+
JSDocLinkPlain = 331,
|
|
381
|
+
JSDocTag = 332,
|
|
382
|
+
JSDocAugmentsTag = 333,
|
|
383
|
+
JSDocImplementsTag = 334,
|
|
384
|
+
JSDocAuthorTag = 335,
|
|
385
|
+
JSDocDeprecatedTag = 336,
|
|
386
|
+
JSDocClassTag = 337,
|
|
387
|
+
JSDocPublicTag = 338,
|
|
388
|
+
JSDocPrivateTag = 339,
|
|
389
|
+
JSDocProtectedTag = 340,
|
|
390
|
+
JSDocReadonlyTag = 341,
|
|
391
|
+
JSDocOverrideTag = 342,
|
|
392
|
+
JSDocCallbackTag = 343,
|
|
393
|
+
JSDocOverloadTag = 344,
|
|
394
|
+
JSDocEnumTag = 345,
|
|
395
|
+
JSDocParameterTag = 346,
|
|
396
|
+
JSDocReturnTag = 347,
|
|
397
|
+
JSDocThisTag = 348,
|
|
398
|
+
JSDocTypeTag = 349,
|
|
399
|
+
JSDocTemplateTag = 350,
|
|
400
|
+
JSDocTypedefTag = 351,
|
|
401
|
+
JSDocSeeTag = 352,
|
|
402
|
+
JSDocPropertyTag = 353,
|
|
403
|
+
JSDocThrowsTag = 354,
|
|
404
|
+
JSDocSatisfiesTag = 355,
|
|
405
|
+
SyntaxList = 356,
|
|
406
|
+
NotEmittedStatement = 357,
|
|
407
|
+
PartiallyEmittedExpression = 358,
|
|
408
|
+
CommaListExpression = 359,
|
|
409
|
+
MergeDeclarationMarker = 360,
|
|
410
|
+
EndOfDeclarationMarker = 361,
|
|
411
|
+
SyntheticReferenceExpression = 362,
|
|
412
|
+
Count = 363,
|
|
413
|
+
FirstAssignment = 64,
|
|
414
|
+
LastAssignment = 79,
|
|
415
|
+
FirstCompoundAssignment = 65,
|
|
416
|
+
LastCompoundAssignment = 79,
|
|
417
|
+
FirstReservedWord = 83,
|
|
418
|
+
LastReservedWord = 118,
|
|
419
|
+
FirstKeyword = 83,
|
|
420
|
+
LastKeyword = 164,
|
|
421
|
+
FirstFutureReservedWord = 119,
|
|
422
|
+
LastFutureReservedWord = 127,
|
|
423
|
+
FirstTypeNode = 181,
|
|
424
|
+
LastTypeNode = 204,
|
|
425
|
+
FirstPunctuation = 19,
|
|
426
|
+
LastPunctuation = 79,
|
|
426
427
|
FirstToken = 0,
|
|
427
|
-
LastToken =
|
|
428
|
+
LastToken = 164,
|
|
428
429
|
FirstTriviaToken = 2,
|
|
429
430
|
LastTriviaToken = 7,
|
|
430
|
-
FirstLiteralToken =
|
|
431
|
-
LastLiteralToken =
|
|
432
|
-
FirstTemplateToken =
|
|
433
|
-
LastTemplateToken =
|
|
434
|
-
FirstBinaryOperator =
|
|
435
|
-
LastBinaryOperator =
|
|
436
|
-
FirstStatement =
|
|
437
|
-
LastStatement =
|
|
438
|
-
FirstNode =
|
|
439
|
-
FirstJSDocNode =
|
|
440
|
-
LastJSDocNode =
|
|
441
|
-
FirstJSDocTagNode =
|
|
442
|
-
LastJSDocTagNode =
|
|
431
|
+
FirstLiteralToken = 9,
|
|
432
|
+
LastLiteralToken = 15,
|
|
433
|
+
FirstTemplateToken = 15,
|
|
434
|
+
LastTemplateToken = 18,
|
|
435
|
+
FirstBinaryOperator = 30,
|
|
436
|
+
LastBinaryOperator = 79,
|
|
437
|
+
FirstStatement = 242,
|
|
438
|
+
LastStatement = 258,
|
|
439
|
+
FirstNode = 165,
|
|
440
|
+
FirstJSDocNode = 314,
|
|
441
|
+
LastJSDocNode = 355,
|
|
442
|
+
FirstJSDocTagNode = 332,
|
|
443
|
+
LastJSDocTagNode = 355
|
|
443
444
|
}
|
|
444
445
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
445
446
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -5847,6 +5848,14 @@ declare namespace ts {
|
|
|
5847
5848
|
emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject<T> | undefined;
|
|
5848
5849
|
}
|
|
5849
5850
|
type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T> | UpdateBundleProject<T>;
|
|
5851
|
+
namespace JsTyping {
|
|
5852
|
+
interface TypingResolutionHost {
|
|
5853
|
+
directoryExists(path: string): boolean;
|
|
5854
|
+
fileExists(fileName: string): boolean;
|
|
5855
|
+
readFile(path: string, encoding?: string): string | undefined;
|
|
5856
|
+
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
|
|
5857
|
+
}
|
|
5858
|
+
}
|
|
5850
5859
|
namespace server {
|
|
5851
5860
|
type ActionSet = "action::set";
|
|
5852
5861
|
type ActionInvalidate = "action::invalidate";
|
|
@@ -5912,6 +5921,14 @@ declare namespace ts {
|
|
|
5912
5921
|
readonly kind: EventEndInstallTypes;
|
|
5913
5922
|
readonly installSuccess: boolean;
|
|
5914
5923
|
}
|
|
5924
|
+
interface InstallTypingHost extends JsTyping.TypingResolutionHost {
|
|
5925
|
+
useCaseSensitiveFileNames: boolean;
|
|
5926
|
+
writeFile(path: string, content: string): void;
|
|
5927
|
+
createDirectory(path: string): void;
|
|
5928
|
+
getCurrentDirectory?(): string;
|
|
5929
|
+
watchFile?(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
|
|
5930
|
+
watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
|
|
5931
|
+
}
|
|
5915
5932
|
interface SetTypings extends ProjectResponse {
|
|
5916
5933
|
readonly typeAcquisition: TypeAcquisition;
|
|
5917
5934
|
readonly compilerOptions: CompilerOptions;
|
|
@@ -6155,6 +6172,7 @@ declare namespace ts {
|
|
|
6155
6172
|
* Editors should call this after `>` is typed.
|
|
6156
6173
|
*/
|
|
6157
6174
|
getJsxClosingTagAtPosition(fileName: string, position: number): JsxClosingTagInfo | undefined;
|
|
6175
|
+
getLinkedEditingRangeAtPosition(fileName: string, position: number): LinkedEditingInfo | undefined;
|
|
6158
6176
|
getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined;
|
|
6159
6177
|
toLineColumnOffset?(fileName: string, position: number): LineAndCharacter;
|
|
6160
6178
|
getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: readonly number[], formatOptions: FormatCodeSettings, preferences: UserPreferences): readonly CodeFixAction[];
|
|
@@ -6184,6 +6202,10 @@ declare namespace ts {
|
|
|
6184
6202
|
interface JsxClosingTagInfo {
|
|
6185
6203
|
readonly newText: string;
|
|
6186
6204
|
}
|
|
6205
|
+
interface LinkedEditingInfo {
|
|
6206
|
+
readonly ranges: TextSpan[];
|
|
6207
|
+
wordPattern?: string;
|
|
6208
|
+
}
|
|
6187
6209
|
interface CombinedCodeFixScope {
|
|
6188
6210
|
type: "file";
|
|
6189
6211
|
fileName: string;
|