@schematics/angular 16.1.0-next.1 → 16.1.0-next.2
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.
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "5.
|
|
17
|
+
const versionMajorMinor = "5.1";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -51,395 +51,397 @@ 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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
/** @deprecated */
|
|
353
|
-
/** @deprecated */
|
|
354
|
-
/** @deprecated */
|
|
355
|
-
/** @deprecated */
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
/** @deprecated */
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
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
|
+
JsxNamespacedName = 294,
|
|
342
|
+
CaseClause = 295,
|
|
343
|
+
DefaultClause = 296,
|
|
344
|
+
HeritageClause = 297,
|
|
345
|
+
CatchClause = 298,
|
|
346
|
+
AssertClause = 299,
|
|
347
|
+
AssertEntry = 300,
|
|
348
|
+
ImportTypeAssertionContainer = 301,
|
|
349
|
+
PropertyAssignment = 302,
|
|
350
|
+
ShorthandPropertyAssignment = 303,
|
|
351
|
+
SpreadAssignment = 304,
|
|
352
|
+
EnumMember = 305,
|
|
353
|
+
/** @deprecated */ UnparsedPrologue = 306,
|
|
354
|
+
/** @deprecated */ UnparsedPrepend = 307,
|
|
355
|
+
/** @deprecated */ UnparsedText = 308,
|
|
356
|
+
/** @deprecated */ UnparsedInternalText = 309,
|
|
357
|
+
/** @deprecated */ UnparsedSyntheticReference = 310,
|
|
358
|
+
SourceFile = 311,
|
|
359
|
+
Bundle = 312,
|
|
360
|
+
/** @deprecated */ UnparsedSource = 313,
|
|
361
|
+
/** @deprecated */ InputFiles = 314,
|
|
362
|
+
JSDocTypeExpression = 315,
|
|
363
|
+
JSDocNameReference = 316,
|
|
364
|
+
JSDocMemberName = 317,
|
|
365
|
+
JSDocAllType = 318,
|
|
366
|
+
JSDocUnknownType = 319,
|
|
367
|
+
JSDocNullableType = 320,
|
|
368
|
+
JSDocNonNullableType = 321,
|
|
369
|
+
JSDocOptionalType = 322,
|
|
370
|
+
JSDocFunctionType = 323,
|
|
371
|
+
JSDocVariadicType = 324,
|
|
372
|
+
JSDocNamepathType = 325,
|
|
373
|
+
JSDoc = 326,
|
|
372
374
|
/** @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 =
|
|
375
|
+
JSDocComment = 326,
|
|
376
|
+
JSDocText = 327,
|
|
377
|
+
JSDocTypeLiteral = 328,
|
|
378
|
+
JSDocSignature = 329,
|
|
379
|
+
JSDocLink = 330,
|
|
380
|
+
JSDocLinkCode = 331,
|
|
381
|
+
JSDocLinkPlain = 332,
|
|
382
|
+
JSDocTag = 333,
|
|
383
|
+
JSDocAugmentsTag = 334,
|
|
384
|
+
JSDocImplementsTag = 335,
|
|
385
|
+
JSDocAuthorTag = 336,
|
|
386
|
+
JSDocDeprecatedTag = 337,
|
|
387
|
+
JSDocClassTag = 338,
|
|
388
|
+
JSDocPublicTag = 339,
|
|
389
|
+
JSDocPrivateTag = 340,
|
|
390
|
+
JSDocProtectedTag = 341,
|
|
391
|
+
JSDocReadonlyTag = 342,
|
|
392
|
+
JSDocOverrideTag = 343,
|
|
393
|
+
JSDocCallbackTag = 344,
|
|
394
|
+
JSDocOverloadTag = 345,
|
|
395
|
+
JSDocEnumTag = 346,
|
|
396
|
+
JSDocParameterTag = 347,
|
|
397
|
+
JSDocReturnTag = 348,
|
|
398
|
+
JSDocThisTag = 349,
|
|
399
|
+
JSDocTypeTag = 350,
|
|
400
|
+
JSDocTemplateTag = 351,
|
|
401
|
+
JSDocTypedefTag = 352,
|
|
402
|
+
JSDocSeeTag = 353,
|
|
403
|
+
JSDocPropertyTag = 354,
|
|
404
|
+
JSDocThrowsTag = 355,
|
|
405
|
+
JSDocSatisfiesTag = 356,
|
|
406
|
+
SyntaxList = 357,
|
|
407
|
+
NotEmittedStatement = 358,
|
|
408
|
+
PartiallyEmittedExpression = 359,
|
|
409
|
+
CommaListExpression = 360,
|
|
410
|
+
MergeDeclarationMarker = 361,
|
|
411
|
+
EndOfDeclarationMarker = 362,
|
|
412
|
+
SyntheticReferenceExpression = 363,
|
|
413
|
+
Count = 364,
|
|
414
|
+
FirstAssignment = 64,
|
|
415
|
+
LastAssignment = 79,
|
|
416
|
+
FirstCompoundAssignment = 65,
|
|
417
|
+
LastCompoundAssignment = 79,
|
|
418
|
+
FirstReservedWord = 83,
|
|
419
|
+
LastReservedWord = 118,
|
|
420
|
+
FirstKeyword = 83,
|
|
421
|
+
LastKeyword = 164,
|
|
422
|
+
FirstFutureReservedWord = 119,
|
|
423
|
+
LastFutureReservedWord = 127,
|
|
424
|
+
FirstTypeNode = 181,
|
|
425
|
+
LastTypeNode = 204,
|
|
426
|
+
FirstPunctuation = 19,
|
|
427
|
+
LastPunctuation = 79,
|
|
426
428
|
FirstToken = 0,
|
|
427
|
-
LastToken =
|
|
429
|
+
LastToken = 164,
|
|
428
430
|
FirstTriviaToken = 2,
|
|
429
431
|
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 =
|
|
432
|
+
FirstLiteralToken = 9,
|
|
433
|
+
LastLiteralToken = 15,
|
|
434
|
+
FirstTemplateToken = 15,
|
|
435
|
+
LastTemplateToken = 18,
|
|
436
|
+
FirstBinaryOperator = 30,
|
|
437
|
+
LastBinaryOperator = 79,
|
|
438
|
+
FirstStatement = 242,
|
|
439
|
+
LastStatement = 258,
|
|
440
|
+
FirstNode = 165,
|
|
441
|
+
FirstJSDocNode = 315,
|
|
442
|
+
LastJSDocNode = 356,
|
|
443
|
+
FirstJSDocTagNode = 333,
|
|
444
|
+
LastJSDocTagNode = 356
|
|
443
445
|
}
|
|
444
446
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
445
447
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -1347,14 +1349,21 @@ declare namespace ts {
|
|
|
1347
1349
|
}
|
|
1348
1350
|
type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement;
|
|
1349
1351
|
type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute;
|
|
1350
|
-
type
|
|
1352
|
+
type JsxAttributeName = Identifier | JsxNamespacedName;
|
|
1353
|
+
type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess | JsxNamespacedName;
|
|
1351
1354
|
interface JsxTagNamePropertyAccess extends PropertyAccessExpression {
|
|
1352
1355
|
readonly expression: JsxTagNameExpression;
|
|
1353
1356
|
}
|
|
1354
|
-
interface JsxAttributes extends
|
|
1357
|
+
interface JsxAttributes extends PrimaryExpression, Declaration {
|
|
1358
|
+
readonly properties: NodeArray<JsxAttributeLike>;
|
|
1355
1359
|
readonly kind: SyntaxKind.JsxAttributes;
|
|
1356
1360
|
readonly parent: JsxOpeningLikeElement;
|
|
1357
1361
|
}
|
|
1362
|
+
interface JsxNamespacedName extends PrimaryExpression {
|
|
1363
|
+
readonly kind: SyntaxKind.JsxNamespacedName;
|
|
1364
|
+
readonly name: Identifier;
|
|
1365
|
+
readonly namespace: Identifier;
|
|
1366
|
+
}
|
|
1358
1367
|
interface JsxOpeningElement extends Expression {
|
|
1359
1368
|
readonly kind: SyntaxKind.JsxOpeningElement;
|
|
1360
1369
|
readonly parent: JsxElement;
|
|
@@ -1382,15 +1391,16 @@ declare namespace ts {
|
|
|
1382
1391
|
readonly kind: SyntaxKind.JsxClosingFragment;
|
|
1383
1392
|
readonly parent: JsxFragment;
|
|
1384
1393
|
}
|
|
1385
|
-
interface JsxAttribute extends
|
|
1394
|
+
interface JsxAttribute extends Declaration {
|
|
1386
1395
|
readonly kind: SyntaxKind.JsxAttribute;
|
|
1387
1396
|
readonly parent: JsxAttributes;
|
|
1388
|
-
readonly name:
|
|
1397
|
+
readonly name: JsxAttributeName;
|
|
1389
1398
|
readonly initializer?: JsxAttributeValue;
|
|
1390
1399
|
}
|
|
1391
1400
|
type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
1392
1401
|
interface JsxSpreadAttribute extends ObjectLiteralElement {
|
|
1393
1402
|
readonly kind: SyntaxKind.JsxSpreadAttribute;
|
|
1403
|
+
readonly name: PropertyName;
|
|
1394
1404
|
readonly parent: JsxAttributes;
|
|
1395
1405
|
readonly expression: Expression;
|
|
1396
1406
|
}
|
|
@@ -2426,6 +2436,40 @@ declare namespace ts {
|
|
|
2426
2436
|
getApparentType(type: Type): Type;
|
|
2427
2437
|
getBaseConstraintOfType(type: Type): Type | undefined;
|
|
2428
2438
|
getDefaultFromTypeParameter(type: Type): Type | undefined;
|
|
2439
|
+
/**
|
|
2440
|
+
* Gets the intrinsic `any` type. There are multiple types that act as `any` used internally in the compiler,
|
|
2441
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
2442
|
+
* is `any`. Instead, use `type.flags & TypeFlags.Any`.
|
|
2443
|
+
*/
|
|
2444
|
+
getAnyType(): Type;
|
|
2445
|
+
getStringType(): Type;
|
|
2446
|
+
getStringLiteralType(value: string): StringLiteralType;
|
|
2447
|
+
getNumberType(): Type;
|
|
2448
|
+
getNumberLiteralType(value: number): NumberLiteralType;
|
|
2449
|
+
getBigIntType(): Type;
|
|
2450
|
+
getBooleanType(): Type;
|
|
2451
|
+
getFalseType(): Type;
|
|
2452
|
+
getTrueType(): Type;
|
|
2453
|
+
getVoidType(): Type;
|
|
2454
|
+
/**
|
|
2455
|
+
* Gets the intrinsic `undefined` type. There are multiple types that act as `undefined` used internally in the compiler
|
|
2456
|
+
* depending on compiler options, so the type returned by this function should not be used in equality checks to determine
|
|
2457
|
+
* if another type is `undefined`. Instead, use `type.flags & TypeFlags.Undefined`.
|
|
2458
|
+
*/
|
|
2459
|
+
getUndefinedType(): Type;
|
|
2460
|
+
/**
|
|
2461
|
+
* Gets the intrinsic `null` type. There are multiple types that act as `null` used internally in the compiler,
|
|
2462
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
2463
|
+
* is `null`. Instead, use `type.flags & TypeFlags.Null`.
|
|
2464
|
+
*/
|
|
2465
|
+
getNullType(): Type;
|
|
2466
|
+
getESSymbolType(): Type;
|
|
2467
|
+
/**
|
|
2468
|
+
* Gets the intrinsic `never` type. There are multiple types that act as `never` used internally in the compiler,
|
|
2469
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
2470
|
+
* is `never`. Instead, use `type.flags & TypeFlags.Never`.
|
|
2471
|
+
*/
|
|
2472
|
+
getNeverType(): Type;
|
|
2429
2473
|
/**
|
|
2430
2474
|
* True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
|
|
2431
2475
|
* This function will _not_ return true if passed a type which
|
|
@@ -2661,14 +2705,12 @@ declare namespace ts {
|
|
|
2661
2705
|
}) | (void & {
|
|
2662
2706
|
__escapedIdentifier: void;
|
|
2663
2707
|
}) | InternalSymbolName;
|
|
2664
|
-
/**
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
interface UnderscoreEscapedMap<T> extends Map<__String, T> {
|
|
2669
|
-
}
|
|
2708
|
+
/** @deprecated Use ReadonlyMap<__String, T> instead. */
|
|
2709
|
+
type ReadonlyUnderscoreEscapedMap<T> = ReadonlyMap<__String, T>;
|
|
2710
|
+
/** @deprecated Use Map<__String, T> instead. */
|
|
2711
|
+
type UnderscoreEscapedMap<T> = Map<__String, T>;
|
|
2670
2712
|
/** SymbolTable based on ES6 Map interface. */
|
|
2671
|
-
type SymbolTable =
|
|
2713
|
+
type SymbolTable = Map<__String, Symbol>;
|
|
2672
2714
|
enum TypeFlags {
|
|
2673
2715
|
Any = 1,
|
|
2674
2716
|
Unknown = 2,
|
|
@@ -3895,14 +3937,16 @@ declare namespace ts {
|
|
|
3895
3937
|
createJsxOpeningFragment(): JsxOpeningFragment;
|
|
3896
3938
|
createJsxJsxClosingFragment(): JsxClosingFragment;
|
|
3897
3939
|
updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
|
|
3898
|
-
createJsxAttribute(name:
|
|
3899
|
-
updateJsxAttribute(node: JsxAttribute, name:
|
|
3940
|
+
createJsxAttribute(name: JsxAttributeName, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3941
|
+
updateJsxAttribute(node: JsxAttribute, name: JsxAttributeName, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3900
3942
|
createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3901
3943
|
updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3902
3944
|
createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
|
|
3903
3945
|
updateJsxSpreadAttribute(node: JsxSpreadAttribute, expression: Expression): JsxSpreadAttribute;
|
|
3904
3946
|
createJsxExpression(dotDotDotToken: DotDotDotToken | undefined, expression: Expression | undefined): JsxExpression;
|
|
3905
3947
|
updateJsxExpression(node: JsxExpression, expression: Expression | undefined): JsxExpression;
|
|
3948
|
+
createJsxNamespacedName(namespace: Identifier, name: Identifier): JsxNamespacedName;
|
|
3949
|
+
updateJsxNamespacedName(node: JsxNamespacedName, namespace: Identifier, name: Identifier): JsxNamespacedName;
|
|
3906
3950
|
createCaseClause(expression: Expression, statements: readonly Statement[]): CaseClause;
|
|
3907
3951
|
updateCaseClause(node: CaseClause, expression: Expression, statements: readonly Statement[]): CaseClause;
|
|
3908
3952
|
createDefaultClause(statements: readonly Statement[]): DefaultClause;
|
|
@@ -4184,7 +4228,6 @@ declare namespace ts {
|
|
|
4184
4228
|
noEmitHelpers?: boolean;
|
|
4185
4229
|
}
|
|
4186
4230
|
interface GetEffectiveTypeRootsHost {
|
|
4187
|
-
directoryExists?(directoryName: string): boolean;
|
|
4188
4231
|
getCurrentDirectory?(): string;
|
|
4189
4232
|
}
|
|
4190
4233
|
interface TextSpan {
|
|
@@ -4386,11 +4429,17 @@ declare namespace ts {
|
|
|
4386
4429
|
function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean;
|
|
4387
4430
|
function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined, identifierVariant?: LanguageVariant): boolean;
|
|
4388
4431
|
function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant?: LanguageVariant, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner;
|
|
4389
|
-
type ErrorCallback = (message: DiagnosticMessage, length: number) => void;
|
|
4432
|
+
type ErrorCallback = (message: DiagnosticMessage, length: number, arg0?: any) => void;
|
|
4390
4433
|
interface Scanner {
|
|
4434
|
+
/** @deprecated use {@link getTokenFullStart} */
|
|
4391
4435
|
getStartPos(): number;
|
|
4392
4436
|
getToken(): SyntaxKind;
|
|
4437
|
+
getTokenFullStart(): number;
|
|
4438
|
+
getTokenStart(): number;
|
|
4439
|
+
getTokenEnd(): number;
|
|
4440
|
+
/** @deprecated use {@link getTokenEnd} */
|
|
4393
4441
|
getTextPos(): number;
|
|
4442
|
+
/** @deprecated use {@link getTokenStart} */
|
|
4394
4443
|
getTokenPos(): number;
|
|
4395
4444
|
getTokenText(): string;
|
|
4396
4445
|
getTokenValue(): string;
|
|
@@ -4404,6 +4453,7 @@ declare namespace ts {
|
|
|
4404
4453
|
reScanSlashToken(): SyntaxKind;
|
|
4405
4454
|
reScanAsteriskEqualsToken(): SyntaxKind;
|
|
4406
4455
|
reScanTemplateToken(isTaggedTemplate: boolean): SyntaxKind;
|
|
4456
|
+
/** @deprecated use {@link reScanTemplateToken}(false) */
|
|
4407
4457
|
reScanTemplateHeadOrNoSubstitutionTemplate(): SyntaxKind;
|
|
4408
4458
|
scanJsxIdentifier(): SyntaxKind;
|
|
4409
4459
|
scanJsxAttributeValue(): SyntaxKind;
|
|
@@ -4421,7 +4471,9 @@ declare namespace ts {
|
|
|
4421
4471
|
setOnError(onError: ErrorCallback | undefined): void;
|
|
4422
4472
|
setScriptTarget(scriptTarget: ScriptTarget): void;
|
|
4423
4473
|
setLanguageVariant(variant: LanguageVariant): void;
|
|
4474
|
+
/** @deprecated use {@link resetTokenState} */
|
|
4424
4475
|
setTextPos(textPos: number): void;
|
|
4476
|
+
resetTokenState(pos: number): void;
|
|
4425
4477
|
lookAhead<T>(callback: () => T): T;
|
|
4426
4478
|
scanRange<T>(start: number, length: number, callback: () => T): T;
|
|
4427
4479
|
tryScan<T>(callback: () => T): T;
|
|
@@ -4965,6 +5017,7 @@ declare namespace ts {
|
|
|
4965
5017
|
function isJsxAttributes(node: Node): node is JsxAttributes;
|
|
4966
5018
|
function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute;
|
|
4967
5019
|
function isJsxExpression(node: Node): node is JsxExpression;
|
|
5020
|
+
function isJsxNamespacedName(node: Node): node is JsxNamespacedName;
|
|
4968
5021
|
function isCaseClause(node: Node): node is CaseClause;
|
|
4969
5022
|
function isDefaultClause(node: Node): node is DefaultClause;
|
|
4970
5023
|
function isHeritageClause(node: Node): node is HeritageClause;
|
|
@@ -5358,7 +5411,7 @@ declare namespace ts {
|
|
|
5358
5411
|
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
|
|
5359
5412
|
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
|
|
5360
5413
|
*/
|
|
5361
|
-
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode):
|
|
5414
|
+
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
|
|
5362
5415
|
/**
|
|
5363
5416
|
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
|
5364
5417
|
* defined mode of the import if provided, or, if not, the mode of the containing file (with some exceptions: import=require is always commonjs, dynamic import is always esm).
|
|
@@ -5378,7 +5431,7 @@ declare namespace ts {
|
|
|
5378
5431
|
*/
|
|
5379
5432
|
function getModeForUsageLocation(file: {
|
|
5380
5433
|
impliedNodeFormat?: ResolutionMode;
|
|
5381
|
-
}, usage: StringLiteralLike):
|
|
5434
|
+
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5382
5435
|
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5383
5436
|
/**
|
|
5384
5437
|
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
@@ -5559,8 +5612,8 @@ declare namespace ts {
|
|
|
5559
5612
|
*/
|
|
5560
5613
|
emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>;
|
|
5561
5614
|
}
|
|
5562
|
-
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost):
|
|
5563
|
-
function createIncrementalCompilerHost(options: CompilerOptions, system?:
|
|
5615
|
+
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
|
|
5616
|
+
function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
|
|
5564
5617
|
function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
|
|
5565
5618
|
/**
|
|
5566
5619
|
* Create the watch compiler host for either configFile or fileNames and its options
|
|
@@ -5716,8 +5769,8 @@ declare namespace ts {
|
|
|
5716
5769
|
* Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
|
|
5717
5770
|
*/
|
|
5718
5771
|
function createBuilderStatusReporter(system: System, pretty?: boolean): DiagnosticReporter;
|
|
5719
|
-
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
5720
|
-
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
5772
|
+
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportErrorSummary?: ReportEmitErrorSummary): SolutionBuilderHost<T>;
|
|
5773
|
+
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): SolutionBuilderWithWatchHost<T>;
|
|
5721
5774
|
function createSolutionBuilder<T extends BuilderProgram>(host: SolutionBuilderHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions): SolutionBuilder<T>;
|
|
5722
5775
|
function createSolutionBuilderWithWatch<T extends BuilderProgram>(host: SolutionBuilderWithWatchHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions, baseWatchOptions?: WatchOptions): SolutionBuilder<T>;
|
|
5723
5776
|
interface BuildOptions {
|
|
@@ -5807,6 +5860,14 @@ declare namespace ts {
|
|
|
5807
5860
|
emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject<T> | undefined;
|
|
5808
5861
|
}
|
|
5809
5862
|
type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T> | UpdateBundleProject<T>;
|
|
5863
|
+
namespace JsTyping {
|
|
5864
|
+
interface TypingResolutionHost {
|
|
5865
|
+
directoryExists(path: string): boolean;
|
|
5866
|
+
fileExists(fileName: string): boolean;
|
|
5867
|
+
readFile(path: string, encoding?: string): string | undefined;
|
|
5868
|
+
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
|
|
5869
|
+
}
|
|
5870
|
+
}
|
|
5810
5871
|
namespace server {
|
|
5811
5872
|
type ActionSet = "action::set";
|
|
5812
5873
|
type ActionInvalidate = "action::invalidate";
|
|
@@ -5872,6 +5933,14 @@ declare namespace ts {
|
|
|
5872
5933
|
readonly kind: EventEndInstallTypes;
|
|
5873
5934
|
readonly installSuccess: boolean;
|
|
5874
5935
|
}
|
|
5936
|
+
interface InstallTypingHost extends JsTyping.TypingResolutionHost {
|
|
5937
|
+
useCaseSensitiveFileNames: boolean;
|
|
5938
|
+
writeFile(path: string, content: string): void;
|
|
5939
|
+
createDirectory(path: string): void;
|
|
5940
|
+
getCurrentDirectory?(): string;
|
|
5941
|
+
watchFile?(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
|
|
5942
|
+
watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
|
|
5943
|
+
}
|
|
5875
5944
|
interface SetTypings extends ProjectResponse {
|
|
5876
5945
|
readonly typeAcquisition: TypeAcquisition;
|
|
5877
5946
|
readonly compilerOptions: CompilerOptions;
|
|
@@ -6094,8 +6163,6 @@ declare namespace ts {
|
|
|
6094
6163
|
findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined;
|
|
6095
6164
|
getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined;
|
|
6096
6165
|
getFileReferences(fileName: string): ReferenceEntry[];
|
|
6097
|
-
/** @deprecated */
|
|
6098
|
-
getOccurrencesAtPosition(fileName: string, position: number): readonly ReferenceEntry[] | undefined;
|
|
6099
6166
|
getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[];
|
|
6100
6167
|
getNavigationBarItems(fileName: string): NavigationBarItem[];
|
|
6101
6168
|
getNavigationTree(fileName: string): NavigationTree;
|
|
@@ -6117,6 +6184,7 @@ declare namespace ts {
|
|
|
6117
6184
|
* Editors should call this after `>` is typed.
|
|
6118
6185
|
*/
|
|
6119
6186
|
getJsxClosingTagAtPosition(fileName: string, position: number): JsxClosingTagInfo | undefined;
|
|
6187
|
+
getLinkedEditingRangeAtPosition(fileName: string, position: number): LinkedEditingInfo | undefined;
|
|
6120
6188
|
getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined;
|
|
6121
6189
|
toLineColumnOffset?(fileName: string, position: number): LineAndCharacter;
|
|
6122
6190
|
getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: readonly number[], formatOptions: FormatCodeSettings, preferences: UserPreferences): readonly CodeFixAction[];
|
|
@@ -6146,6 +6214,10 @@ declare namespace ts {
|
|
|
6146
6214
|
interface JsxClosingTagInfo {
|
|
6147
6215
|
readonly newText: string;
|
|
6148
6216
|
}
|
|
6217
|
+
interface LinkedEditingInfo {
|
|
6218
|
+
readonly ranges: TextSpan[];
|
|
6219
|
+
wordPattern?: string;
|
|
6220
|
+
}
|
|
6149
6221
|
interface CombinedCodeFixScope {
|
|
6150
6222
|
type: "file";
|
|
6151
6223
|
fileName: string;
|
|
@@ -6534,6 +6606,7 @@ declare namespace ts {
|
|
|
6534
6606
|
readonly insertSpaceBeforeTypeAnnotation?: boolean;
|
|
6535
6607
|
readonly indentMultiLineObjectLiteralBeginningOnBlankLine?: boolean;
|
|
6536
6608
|
readonly semicolons?: SemicolonPreference;
|
|
6609
|
+
readonly indentSwitchCase?: boolean;
|
|
6537
6610
|
}
|
|
6538
6611
|
interface DefinitionInfo extends DocumentSpan {
|
|
6539
6612
|
kind: ScriptElementKind;
|