@schematics/angular 16.1.0-next.1 → 16.1.0-rc.0

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.0";
17
+ const versionMajorMinor = "5.1";
18
18
  /** The version of the TypeScript compiler release */
19
19
  const version: string;
20
20
  /**
@@ -51,395 +51,395 @@ declare namespace ts {
51
51
  WhitespaceTrivia = 5,
52
52
  ShebangTrivia = 6,
53
53
  ConflictMarkerTrivia = 7,
54
- NumericLiteral = 8,
55
- BigIntLiteral = 9,
56
- StringLiteral = 10,
57
- JsxText = 11,
58
- JsxTextAllWhiteSpaces = 12,
59
- RegularExpressionLiteral = 13,
60
- NoSubstitutionTemplateLiteral = 14,
61
- TemplateHead = 15,
62
- TemplateMiddle = 16,
63
- TemplateTail = 17,
64
- OpenBraceToken = 18,
65
- CloseBraceToken = 19,
66
- OpenParenToken = 20,
67
- CloseParenToken = 21,
68
- OpenBracketToken = 22,
69
- CloseBracketToken = 23,
70
- DotToken = 24,
71
- DotDotDotToken = 25,
72
- SemicolonToken = 26,
73
- CommaToken = 27,
74
- QuestionDotToken = 28,
75
- LessThanToken = 29,
76
- LessThanSlashToken = 30,
77
- GreaterThanToken = 31,
78
- LessThanEqualsToken = 32,
79
- GreaterThanEqualsToken = 33,
80
- EqualsEqualsToken = 34,
81
- ExclamationEqualsToken = 35,
82
- EqualsEqualsEqualsToken = 36,
83
- ExclamationEqualsEqualsToken = 37,
84
- EqualsGreaterThanToken = 38,
85
- PlusToken = 39,
86
- MinusToken = 40,
87
- AsteriskToken = 41,
88
- AsteriskAsteriskToken = 42,
89
- SlashToken = 43,
90
- PercentToken = 44,
91
- PlusPlusToken = 45,
92
- MinusMinusToken = 46,
93
- LessThanLessThanToken = 47,
94
- GreaterThanGreaterThanToken = 48,
95
- GreaterThanGreaterThanGreaterThanToken = 49,
96
- AmpersandToken = 50,
97
- BarToken = 51,
98
- CaretToken = 52,
99
- ExclamationToken = 53,
100
- TildeToken = 54,
101
- AmpersandAmpersandToken = 55,
102
- BarBarToken = 56,
103
- QuestionToken = 57,
104
- ColonToken = 58,
105
- AtToken = 59,
106
- QuestionQuestionToken = 60,
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 = 61,
109
+ BacktickToken = 62,
109
110
  /** Only the JSDoc scanner produces HashToken. The normal scanner produces PrivateIdentifier. */
110
- HashToken = 62,
111
- EqualsToken = 63,
112
- PlusEqualsToken = 64,
113
- MinusEqualsToken = 65,
114
- AsteriskEqualsToken = 66,
115
- AsteriskAsteriskEqualsToken = 67,
116
- SlashEqualsToken = 68,
117
- PercentEqualsToken = 69,
118
- LessThanLessThanEqualsToken = 70,
119
- GreaterThanGreaterThanEqualsToken = 71,
120
- GreaterThanGreaterThanGreaterThanEqualsToken = 72,
121
- AmpersandEqualsToken = 73,
122
- BarEqualsToken = 74,
123
- BarBarEqualsToken = 75,
124
- AmpersandAmpersandEqualsToken = 76,
125
- QuestionQuestionEqualsToken = 77,
126
- CaretEqualsToken = 78,
127
- Identifier = 79,
128
- PrivateIdentifier = 80,
129
- BreakKeyword = 81,
130
- CaseKeyword = 82,
131
- CatchKeyword = 83,
132
- ClassKeyword = 84,
133
- ConstKeyword = 85,
134
- ContinueKeyword = 86,
135
- DebuggerKeyword = 87,
136
- DefaultKeyword = 88,
137
- DeleteKeyword = 89,
138
- DoKeyword = 90,
139
- ElseKeyword = 91,
140
- EnumKeyword = 92,
141
- ExportKeyword = 93,
142
- ExtendsKeyword = 94,
143
- FalseKeyword = 95,
144
- FinallyKeyword = 96,
145
- ForKeyword = 97,
146
- FunctionKeyword = 98,
147
- IfKeyword = 99,
148
- ImportKeyword = 100,
149
- InKeyword = 101,
150
- InstanceOfKeyword = 102,
151
- NewKeyword = 103,
152
- NullKeyword = 104,
153
- ReturnKeyword = 105,
154
- SuperKeyword = 106,
155
- SwitchKeyword = 107,
156
- ThisKeyword = 108,
157
- ThrowKeyword = 109,
158
- TrueKeyword = 110,
159
- TryKeyword = 111,
160
- TypeOfKeyword = 112,
161
- VarKeyword = 113,
162
- VoidKeyword = 114,
163
- WhileKeyword = 115,
164
- WithKeyword = 116,
165
- ImplementsKeyword = 117,
166
- InterfaceKeyword = 118,
167
- LetKeyword = 119,
168
- PackageKeyword = 120,
169
- PrivateKeyword = 121,
170
- ProtectedKeyword = 122,
171
- PublicKeyword = 123,
172
- StaticKeyword = 124,
173
- YieldKeyword = 125,
174
- AbstractKeyword = 126,
175
- AccessorKeyword = 127,
176
- AsKeyword = 128,
177
- AssertsKeyword = 129,
178
- AssertKeyword = 130,
179
- AnyKeyword = 131,
180
- AsyncKeyword = 132,
181
- AwaitKeyword = 133,
182
- BooleanKeyword = 134,
183
- ConstructorKeyword = 135,
184
- DeclareKeyword = 136,
185
- GetKeyword = 137,
186
- InferKeyword = 138,
187
- IntrinsicKeyword = 139,
188
- IsKeyword = 140,
189
- KeyOfKeyword = 141,
190
- ModuleKeyword = 142,
191
- NamespaceKeyword = 143,
192
- NeverKeyword = 144,
193
- OutKeyword = 145,
194
- ReadonlyKeyword = 146,
195
- RequireKeyword = 147,
196
- NumberKeyword = 148,
197
- ObjectKeyword = 149,
198
- SatisfiesKeyword = 150,
199
- SetKeyword = 151,
200
- StringKeyword = 152,
201
- SymbolKeyword = 153,
202
- TypeKeyword = 154,
203
- UndefinedKeyword = 155,
204
- UniqueKeyword = 156,
205
- UnknownKeyword = 157,
206
- FromKeyword = 158,
207
- GlobalKeyword = 159,
208
- BigIntKeyword = 160,
209
- OverrideKeyword = 161,
210
- OfKeyword = 162,
211
- QualifiedName = 163,
212
- ComputedPropertyName = 164,
213
- TypeParameter = 165,
214
- Parameter = 166,
215
- Decorator = 167,
216
- PropertySignature = 168,
217
- PropertyDeclaration = 169,
218
- MethodSignature = 170,
219
- MethodDeclaration = 171,
220
- ClassStaticBlockDeclaration = 172,
221
- Constructor = 173,
222
- GetAccessor = 174,
223
- SetAccessor = 175,
224
- CallSignature = 176,
225
- ConstructSignature = 177,
226
- IndexSignature = 178,
227
- TypePredicate = 179,
228
- TypeReference = 180,
229
- FunctionType = 181,
230
- ConstructorType = 182,
231
- TypeQuery = 183,
232
- TypeLiteral = 184,
233
- ArrayType = 185,
234
- TupleType = 186,
235
- OptionalType = 187,
236
- RestType = 188,
237
- UnionType = 189,
238
- IntersectionType = 190,
239
- ConditionalType = 191,
240
- InferType = 192,
241
- ParenthesizedType = 193,
242
- ThisType = 194,
243
- TypeOperator = 195,
244
- IndexedAccessType = 196,
245
- MappedType = 197,
246
- LiteralType = 198,
247
- NamedTupleMember = 199,
248
- TemplateLiteralType = 200,
249
- TemplateLiteralTypeSpan = 201,
250
- ImportType = 202,
251
- ObjectBindingPattern = 203,
252
- ArrayBindingPattern = 204,
253
- BindingElement = 205,
254
- ArrayLiteralExpression = 206,
255
- ObjectLiteralExpression = 207,
256
- PropertyAccessExpression = 208,
257
- ElementAccessExpression = 209,
258
- CallExpression = 210,
259
- NewExpression = 211,
260
- TaggedTemplateExpression = 212,
261
- TypeAssertionExpression = 213,
262
- ParenthesizedExpression = 214,
263
- FunctionExpression = 215,
264
- ArrowFunction = 216,
265
- DeleteExpression = 217,
266
- TypeOfExpression = 218,
267
- VoidExpression = 219,
268
- AwaitExpression = 220,
269
- PrefixUnaryExpression = 221,
270
- PostfixUnaryExpression = 222,
271
- BinaryExpression = 223,
272
- ConditionalExpression = 224,
273
- TemplateExpression = 225,
274
- YieldExpression = 226,
275
- SpreadElement = 227,
276
- ClassExpression = 228,
277
- OmittedExpression = 229,
278
- ExpressionWithTypeArguments = 230,
279
- AsExpression = 231,
280
- NonNullExpression = 232,
281
- MetaProperty = 233,
282
- SyntheticExpression = 234,
283
- SatisfiesExpression = 235,
284
- TemplateSpan = 236,
285
- SemicolonClassElement = 237,
286
- Block = 238,
287
- EmptyStatement = 239,
288
- VariableStatement = 240,
289
- ExpressionStatement = 241,
290
- IfStatement = 242,
291
- DoStatement = 243,
292
- WhileStatement = 244,
293
- ForStatement = 245,
294
- ForInStatement = 246,
295
- ForOfStatement = 247,
296
- ContinueStatement = 248,
297
- BreakStatement = 249,
298
- ReturnStatement = 250,
299
- WithStatement = 251,
300
- SwitchStatement = 252,
301
- LabeledStatement = 253,
302
- ThrowStatement = 254,
303
- TryStatement = 255,
304
- DebuggerStatement = 256,
305
- VariableDeclaration = 257,
306
- VariableDeclarationList = 258,
307
- FunctionDeclaration = 259,
308
- ClassDeclaration = 260,
309
- InterfaceDeclaration = 261,
310
- TypeAliasDeclaration = 262,
311
- EnumDeclaration = 263,
312
- ModuleDeclaration = 264,
313
- ModuleBlock = 265,
314
- CaseBlock = 266,
315
- NamespaceExportDeclaration = 267,
316
- ImportEqualsDeclaration = 268,
317
- ImportDeclaration = 269,
318
- ImportClause = 270,
319
- NamespaceImport = 271,
320
- NamedImports = 272,
321
- ImportSpecifier = 273,
322
- ExportAssignment = 274,
323
- ExportDeclaration = 275,
324
- NamedExports = 276,
325
- NamespaceExport = 277,
326
- ExportSpecifier = 278,
327
- MissingDeclaration = 279,
328
- ExternalModuleReference = 280,
329
- JsxElement = 281,
330
- JsxSelfClosingElement = 282,
331
- JsxOpeningElement = 283,
332
- JsxClosingElement = 284,
333
- JsxFragment = 285,
334
- JsxOpeningFragment = 286,
335
- JsxClosingFragment = 287,
336
- JsxAttribute = 288,
337
- JsxAttributes = 289,
338
- JsxSpreadAttribute = 290,
339
- JsxExpression = 291,
340
- CaseClause = 292,
341
- DefaultClause = 293,
342
- HeritageClause = 294,
343
- CatchClause = 295,
344
- AssertClause = 296,
345
- AssertEntry = 297,
346
- ImportTypeAssertionContainer = 298,
347
- PropertyAssignment = 299,
348
- ShorthandPropertyAssignment = 300,
349
- SpreadAssignment = 301,
350
- EnumMember = 302,
351
- /** @deprecated */ UnparsedPrologue = 303,
352
- /** @deprecated */ UnparsedPrepend = 304,
353
- /** @deprecated */ UnparsedText = 305,
354
- /** @deprecated */ UnparsedInternalText = 306,
355
- /** @deprecated */ UnparsedSyntheticReference = 307,
356
- SourceFile = 308,
357
- Bundle = 309,
358
- /** @deprecated */ UnparsedSource = 310,
359
- /** @deprecated */ InputFiles = 311,
360
- JSDocTypeExpression = 312,
361
- JSDocNameReference = 313,
362
- JSDocMemberName = 314,
363
- JSDocAllType = 315,
364
- JSDocUnknownType = 316,
365
- JSDocNullableType = 317,
366
- JSDocNonNullableType = 318,
367
- JSDocOptionalType = 319,
368
- JSDocFunctionType = 320,
369
- JSDocVariadicType = 321,
370
- JSDocNamepathType = 322,
371
- JSDoc = 323,
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 = 323,
374
- JSDocText = 324,
375
- JSDocTypeLiteral = 325,
376
- JSDocSignature = 326,
377
- JSDocLink = 327,
378
- JSDocLinkCode = 328,
379
- JSDocLinkPlain = 329,
380
- JSDocTag = 330,
381
- JSDocAugmentsTag = 331,
382
- JSDocImplementsTag = 332,
383
- JSDocAuthorTag = 333,
384
- JSDocDeprecatedTag = 334,
385
- JSDocClassTag = 335,
386
- JSDocPublicTag = 336,
387
- JSDocPrivateTag = 337,
388
- JSDocProtectedTag = 338,
389
- JSDocReadonlyTag = 339,
390
- JSDocOverrideTag = 340,
391
- JSDocCallbackTag = 341,
392
- JSDocOverloadTag = 342,
393
- JSDocEnumTag = 343,
394
- JSDocParameterTag = 344,
395
- JSDocReturnTag = 345,
396
- JSDocThisTag = 346,
397
- JSDocTypeTag = 347,
398
- JSDocTemplateTag = 348,
399
- JSDocTypedefTag = 349,
400
- JSDocSeeTag = 350,
401
- JSDocPropertyTag = 351,
402
- JSDocThrowsTag = 352,
403
- JSDocSatisfiesTag = 353,
404
- SyntaxList = 354,
405
- NotEmittedStatement = 355,
406
- PartiallyEmittedExpression = 356,
407
- CommaListExpression = 357,
408
- MergeDeclarationMarker = 358,
409
- EndOfDeclarationMarker = 359,
410
- SyntheticReferenceExpression = 360,
411
- Count = 361,
412
- FirstAssignment = 63,
413
- LastAssignment = 78,
414
- FirstCompoundAssignment = 64,
415
- LastCompoundAssignment = 78,
416
- FirstReservedWord = 81,
417
- LastReservedWord = 116,
418
- FirstKeyword = 81,
419
- LastKeyword = 162,
420
- FirstFutureReservedWord = 117,
421
- LastFutureReservedWord = 125,
422
- FirstTypeNode = 179,
423
- LastTypeNode = 202,
424
- FirstPunctuation = 18,
425
- LastPunctuation = 78,
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
+ SyntheticReferenceExpression = 361,
411
+ Count = 362,
412
+ FirstAssignment = 64,
413
+ LastAssignment = 79,
414
+ FirstCompoundAssignment = 65,
415
+ LastCompoundAssignment = 79,
416
+ FirstReservedWord = 83,
417
+ LastReservedWord = 118,
418
+ FirstKeyword = 83,
419
+ LastKeyword = 164,
420
+ FirstFutureReservedWord = 119,
421
+ LastFutureReservedWord = 127,
422
+ FirstTypeNode = 181,
423
+ LastTypeNode = 204,
424
+ FirstPunctuation = 19,
425
+ LastPunctuation = 79,
426
426
  FirstToken = 0,
427
- LastToken = 162,
427
+ LastToken = 164,
428
428
  FirstTriviaToken = 2,
429
429
  LastTriviaToken = 7,
430
- FirstLiteralToken = 8,
431
- LastLiteralToken = 14,
432
- FirstTemplateToken = 14,
433
- LastTemplateToken = 17,
434
- FirstBinaryOperator = 29,
435
- LastBinaryOperator = 78,
436
- FirstStatement = 240,
437
- LastStatement = 256,
438
- FirstNode = 163,
439
- FirstJSDocNode = 312,
440
- LastJSDocNode = 353,
441
- FirstJSDocTagNode = 330,
442
- LastJSDocTagNode = 353
430
+ FirstLiteralToken = 9,
431
+ LastLiteralToken = 15,
432
+ FirstTemplateToken = 15,
433
+ LastTemplateToken = 18,
434
+ FirstBinaryOperator = 30,
435
+ LastBinaryOperator = 79,
436
+ FirstStatement = 242,
437
+ LastStatement = 258,
438
+ FirstNode = 165,
439
+ FirstJSDocNode = 315,
440
+ LastJSDocNode = 356,
441
+ FirstJSDocTagNode = 333,
442
+ LastJSDocTagNode = 356
443
443
  }
444
444
  type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
445
445
  type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
@@ -550,7 +550,7 @@ declare namespace ts {
550
550
  interface FlowContainer extends Node {
551
551
  _flowContainerBrand: any;
552
552
  }
553
- type HasJSDoc = AccessorDeclaration | ArrowFunction | BinaryExpression | Block | BreakStatement | CallSignatureDeclaration | CaseClause | ClassLikeDeclaration | ClassStaticBlockDeclaration | ConstructorDeclaration | ConstructorTypeNode | ConstructSignatureDeclaration | ContinueStatement | DebuggerStatement | DoStatement | ElementAccessExpression | EmptyStatement | EndOfFileToken | EnumDeclaration | EnumMember | ExportAssignment | ExportDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | FunctionTypeNode | Identifier | IfStatement | ImportDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | InterfaceDeclaration | JSDocFunctionType | JSDocSignature | LabeledStatement | MethodDeclaration | MethodSignature | ModuleDeclaration | NamedTupleMember | NamespaceExportDeclaration | ObjectLiteralExpression | ParameterDeclaration | ParenthesizedExpression | PropertyAccessExpression | PropertyAssignment | PropertyDeclaration | PropertySignature | ReturnStatement | ShorthandPropertyAssignment | SpreadAssignment | SwitchStatement | ThrowStatement | TryStatement | TypeAliasDeclaration | TypeParameterDeclaration | VariableDeclaration | VariableStatement | WhileStatement | WithStatement;
553
+ type HasJSDoc = AccessorDeclaration | ArrowFunction | BinaryExpression | Block | BreakStatement | CallSignatureDeclaration | CaseClause | ClassLikeDeclaration | ClassStaticBlockDeclaration | ConstructorDeclaration | ConstructorTypeNode | ConstructSignatureDeclaration | ContinueStatement | DebuggerStatement | DoStatement | ElementAccessExpression | EmptyStatement | EndOfFileToken | EnumDeclaration | EnumMember | ExportAssignment | ExportDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | FunctionTypeNode | Identifier | IfStatement | ImportDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | InterfaceDeclaration | JSDocFunctionType | JSDocSignature | LabeledStatement | MethodDeclaration | MethodSignature | ModuleDeclaration | NamedTupleMember | NamespaceExportDeclaration | ObjectLiteralExpression | ParameterDeclaration | ParenthesizedExpression | PropertyAccessExpression | PropertyAssignment | PropertyDeclaration | PropertySignature | ReturnStatement | SemicolonClassElement | ShorthandPropertyAssignment | SpreadAssignment | SwitchStatement | ThrowStatement | TryStatement | TypeAliasDeclaration | TypeParameterDeclaration | VariableDeclaration | VariableStatement | WhileStatement | WithStatement;
554
554
  type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
555
555
  type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
556
556
  type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
@@ -644,7 +644,7 @@ declare namespace ts {
644
644
  type EntityName = Identifier | QualifiedName;
645
645
  type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
646
646
  type MemberName = Identifier | PrivateIdentifier;
647
- type DeclarationName = Identifier | PrivateIdentifier | StringLiteralLike | NumericLiteral | ComputedPropertyName | ElementAccessExpression | BindingPattern | EntityNameExpression;
647
+ type DeclarationName = PropertyName | JsxAttributeName | StringLiteralLike | ElementAccessExpression | BindingPattern | EntityNameExpression;
648
648
  interface Declaration extends Node {
649
649
  _declarationBrand: any;
650
650
  }
@@ -829,7 +829,7 @@ declare namespace ts {
829
829
  readonly body?: FunctionBody | undefined;
830
830
  }
831
831
  /** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */
832
- interface SemicolonClassElement extends ClassElement {
832
+ interface SemicolonClassElement extends ClassElement, JSDocContainer {
833
833
  readonly kind: SyntaxKind.SemicolonClassElement;
834
834
  readonly parent: ClassLikeDeclaration;
835
835
  }
@@ -991,7 +991,7 @@ declare namespace ts {
991
991
  readonly kind: SyntaxKind.StringLiteral;
992
992
  }
993
993
  type StringLiteralLike = StringLiteral | NoSubstitutionTemplateLiteral;
994
- type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral;
994
+ type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral | JsxNamespacedName;
995
995
  interface TemplateLiteralTypeNode extends TypeNode {
996
996
  kind: SyntaxKind.TemplateLiteralType;
997
997
  readonly head: TemplateHead;
@@ -1347,14 +1347,21 @@ declare namespace ts {
1347
1347
  }
1348
1348
  type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement;
1349
1349
  type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute;
1350
- type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess;
1350
+ type JsxAttributeName = Identifier | JsxNamespacedName;
1351
+ type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess | JsxNamespacedName;
1351
1352
  interface JsxTagNamePropertyAccess extends PropertyAccessExpression {
1352
- readonly expression: JsxTagNameExpression;
1353
+ readonly expression: Identifier | ThisExpression | JsxTagNamePropertyAccess;
1353
1354
  }
1354
- interface JsxAttributes extends ObjectLiteralExpressionBase<JsxAttributeLike> {
1355
+ interface JsxAttributes extends PrimaryExpression, Declaration {
1356
+ readonly properties: NodeArray<JsxAttributeLike>;
1355
1357
  readonly kind: SyntaxKind.JsxAttributes;
1356
1358
  readonly parent: JsxOpeningLikeElement;
1357
1359
  }
1360
+ interface JsxNamespacedName extends Node {
1361
+ readonly kind: SyntaxKind.JsxNamespacedName;
1362
+ readonly name: Identifier;
1363
+ readonly namespace: Identifier;
1364
+ }
1358
1365
  interface JsxOpeningElement extends Expression {
1359
1366
  readonly kind: SyntaxKind.JsxOpeningElement;
1360
1367
  readonly parent: JsxElement;
@@ -1382,15 +1389,16 @@ declare namespace ts {
1382
1389
  readonly kind: SyntaxKind.JsxClosingFragment;
1383
1390
  readonly parent: JsxFragment;
1384
1391
  }
1385
- interface JsxAttribute extends ObjectLiteralElement {
1392
+ interface JsxAttribute extends Declaration {
1386
1393
  readonly kind: SyntaxKind.JsxAttribute;
1387
1394
  readonly parent: JsxAttributes;
1388
- readonly name: Identifier;
1395
+ readonly name: JsxAttributeName;
1389
1396
  readonly initializer?: JsxAttributeValue;
1390
1397
  }
1391
1398
  type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
1392
1399
  interface JsxSpreadAttribute extends ObjectLiteralElement {
1393
1400
  readonly kind: SyntaxKind.JsxSpreadAttribute;
1401
+ readonly name: PropertyName;
1394
1402
  readonly parent: JsxAttributes;
1395
1403
  readonly expression: Expression;
1396
1404
  }
@@ -2426,6 +2434,40 @@ declare namespace ts {
2426
2434
  getApparentType(type: Type): Type;
2427
2435
  getBaseConstraintOfType(type: Type): Type | undefined;
2428
2436
  getDefaultFromTypeParameter(type: Type): Type | undefined;
2437
+ /**
2438
+ * Gets the intrinsic `any` type. There are multiple types that act as `any` used internally in the compiler,
2439
+ * so the type returned by this function should not be used in equality checks to determine if another type
2440
+ * is `any`. Instead, use `type.flags & TypeFlags.Any`.
2441
+ */
2442
+ getAnyType(): Type;
2443
+ getStringType(): Type;
2444
+ getStringLiteralType(value: string): StringLiteralType;
2445
+ getNumberType(): Type;
2446
+ getNumberLiteralType(value: number): NumberLiteralType;
2447
+ getBigIntType(): Type;
2448
+ getBooleanType(): Type;
2449
+ getFalseType(): Type;
2450
+ getTrueType(): Type;
2451
+ getVoidType(): Type;
2452
+ /**
2453
+ * Gets the intrinsic `undefined` type. There are multiple types that act as `undefined` used internally in the compiler
2454
+ * depending on compiler options, so the type returned by this function should not be used in equality checks to determine
2455
+ * if another type is `undefined`. Instead, use `type.flags & TypeFlags.Undefined`.
2456
+ */
2457
+ getUndefinedType(): Type;
2458
+ /**
2459
+ * Gets the intrinsic `null` type. There are multiple types that act as `null` used internally in the compiler,
2460
+ * so the type returned by this function should not be used in equality checks to determine if another type
2461
+ * is `null`. Instead, use `type.flags & TypeFlags.Null`.
2462
+ */
2463
+ getNullType(): Type;
2464
+ getESSymbolType(): Type;
2465
+ /**
2466
+ * Gets the intrinsic `never` type. There are multiple types that act as `never` used internally in the compiler,
2467
+ * so the type returned by this function should not be used in equality checks to determine if another type
2468
+ * is `never`. Instead, use `type.flags & TypeFlags.Never`.
2469
+ */
2470
+ getNeverType(): Type;
2429
2471
  /**
2430
2472
  * True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
2431
2473
  * This function will _not_ return true if passed a type which
@@ -2661,14 +2703,12 @@ declare namespace ts {
2661
2703
  }) | (void & {
2662
2704
  __escapedIdentifier: void;
2663
2705
  }) | InternalSymbolName;
2664
- /** ReadonlyMap where keys are `__String`s. */
2665
- interface ReadonlyUnderscoreEscapedMap<T> extends ReadonlyMap<__String, T> {
2666
- }
2667
- /** Map where keys are `__String`s. */
2668
- interface UnderscoreEscapedMap<T> extends Map<__String, T> {
2669
- }
2706
+ /** @deprecated Use ReadonlyMap<__String, T> instead. */
2707
+ type ReadonlyUnderscoreEscapedMap<T> = ReadonlyMap<__String, T>;
2708
+ /** @deprecated Use Map<__String, T> instead. */
2709
+ type UnderscoreEscapedMap<T> = Map<__String, T>;
2670
2710
  /** SymbolTable based on ES6 Map interface. */
2671
- type SymbolTable = UnderscoreEscapedMap<Symbol>;
2711
+ type SymbolTable = Map<__String, Symbol>;
2672
2712
  enum TypeFlags {
2673
2713
  Any = 1,
2674
2714
  Unknown = 2,
@@ -3459,9 +3499,8 @@ declare namespace ts {
3459
3499
  ReuseTempVariableScope = 1048576,
3460
3500
  CustomPrologue = 2097152,
3461
3501
  NoHoisting = 4194304,
3462
- HasEndOfDeclarationMarker = 8388608,
3463
- Iterator = 16777216,
3464
- NoAsciiEscaping = 33554432
3502
+ Iterator = 8388608,
3503
+ NoAsciiEscaping = 16777216
3465
3504
  }
3466
3505
  interface EmitHelperBase {
3467
3506
  readonly name: string;
@@ -3895,14 +3934,16 @@ declare namespace ts {
3895
3934
  createJsxOpeningFragment(): JsxOpeningFragment;
3896
3935
  createJsxJsxClosingFragment(): JsxClosingFragment;
3897
3936
  updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
3898
- createJsxAttribute(name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
3899
- updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
3937
+ createJsxAttribute(name: JsxAttributeName, initializer: JsxAttributeValue | undefined): JsxAttribute;
3938
+ updateJsxAttribute(node: JsxAttribute, name: JsxAttributeName, initializer: JsxAttributeValue | undefined): JsxAttribute;
3900
3939
  createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
3901
3940
  updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
3902
3941
  createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
3903
3942
  updateJsxSpreadAttribute(node: JsxSpreadAttribute, expression: Expression): JsxSpreadAttribute;
3904
3943
  createJsxExpression(dotDotDotToken: DotDotDotToken | undefined, expression: Expression | undefined): JsxExpression;
3905
3944
  updateJsxExpression(node: JsxExpression, expression: Expression | undefined): JsxExpression;
3945
+ createJsxNamespacedName(namespace: Identifier, name: Identifier): JsxNamespacedName;
3946
+ updateJsxNamespacedName(node: JsxNamespacedName, namespace: Identifier, name: Identifier): JsxNamespacedName;
3906
3947
  createCaseClause(expression: Expression, statements: readonly Statement[]): CaseClause;
3907
3948
  updateCaseClause(node: CaseClause, expression: Expression, statements: readonly Statement[]): CaseClause;
3908
3949
  createDefaultClause(statements: readonly Statement[]): DefaultClause;
@@ -4184,7 +4225,6 @@ declare namespace ts {
4184
4225
  noEmitHelpers?: boolean;
4185
4226
  }
4186
4227
  interface GetEffectiveTypeRootsHost {
4187
- directoryExists?(directoryName: string): boolean;
4188
4228
  getCurrentDirectory?(): string;
4189
4229
  }
4190
4230
  interface TextSpan {
@@ -4386,11 +4426,17 @@ declare namespace ts {
4386
4426
  function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean;
4387
4427
  function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined, identifierVariant?: LanguageVariant): boolean;
4388
4428
  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;
4429
+ type ErrorCallback = (message: DiagnosticMessage, length: number, arg0?: any) => void;
4390
4430
  interface Scanner {
4431
+ /** @deprecated use {@link getTokenFullStart} */
4391
4432
  getStartPos(): number;
4392
4433
  getToken(): SyntaxKind;
4434
+ getTokenFullStart(): number;
4435
+ getTokenStart(): number;
4436
+ getTokenEnd(): number;
4437
+ /** @deprecated use {@link getTokenEnd} */
4393
4438
  getTextPos(): number;
4439
+ /** @deprecated use {@link getTokenStart} */
4394
4440
  getTokenPos(): number;
4395
4441
  getTokenText(): string;
4396
4442
  getTokenValue(): string;
@@ -4404,6 +4450,7 @@ declare namespace ts {
4404
4450
  reScanSlashToken(): SyntaxKind;
4405
4451
  reScanAsteriskEqualsToken(): SyntaxKind;
4406
4452
  reScanTemplateToken(isTaggedTemplate: boolean): SyntaxKind;
4453
+ /** @deprecated use {@link reScanTemplateToken}(false) */
4407
4454
  reScanTemplateHeadOrNoSubstitutionTemplate(): SyntaxKind;
4408
4455
  scanJsxIdentifier(): SyntaxKind;
4409
4456
  scanJsxAttributeValue(): SyntaxKind;
@@ -4421,7 +4468,9 @@ declare namespace ts {
4421
4468
  setOnError(onError: ErrorCallback | undefined): void;
4422
4469
  setScriptTarget(scriptTarget: ScriptTarget): void;
4423
4470
  setLanguageVariant(variant: LanguageVariant): void;
4471
+ /** @deprecated use {@link resetTokenState} */
4424
4472
  setTextPos(textPos: number): void;
4473
+ resetTokenState(pos: number): void;
4425
4474
  lookAhead<T>(callback: () => T): T;
4426
4475
  scanRange<T>(start: number, length: number, callback: () => T): T;
4427
4476
  tryScan<T>(callback: () => T): T;
@@ -4722,6 +4771,26 @@ declare namespace ts {
4722
4771
  parent: ConstructorDeclaration;
4723
4772
  name: Identifier;
4724
4773
  };
4774
+ /**
4775
+ * This function checks multiple locations for JSDoc comments that apply to a host node.
4776
+ * At each location, the whole comment may apply to the node, or only a specific tag in
4777
+ * the comment. In the first case, location adds the entire {@link JSDoc} object. In the
4778
+ * second case, it adds the applicable {@link JSDocTag}.
4779
+ *
4780
+ * For example, a JSDoc comment before a parameter adds the entire {@link JSDoc}. But a
4781
+ * `@param` tag on the parent function only adds the {@link JSDocTag} for the `@param`.
4782
+ *
4783
+ * ```ts
4784
+ * /** JSDoc will be returned for `a` *\/
4785
+ * const a = 0
4786
+ * /**
4787
+ * * Entire JSDoc will be returned for `b`
4788
+ * * @param c JSDocTag will be returned for `c`
4789
+ * *\/
4790
+ * function b(/** JSDoc will be returned for `c` *\/ c) {}
4791
+ * ```
4792
+ */
4793
+ function getJSDocCommentsAndTags(hostNode: Node): readonly (JSDoc | JSDocTag)[];
4725
4794
  /** @deprecated */
4726
4795
  function createUnparsedSourceFile(text: string): UnparsedSource;
4727
4796
  /** @deprecated */
@@ -4965,6 +5034,7 @@ declare namespace ts {
4965
5034
  function isJsxAttributes(node: Node): node is JsxAttributes;
4966
5035
  function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute;
4967
5036
  function isJsxExpression(node: Node): node is JsxExpression;
5037
+ function isJsxNamespacedName(node: Node): node is JsxNamespacedName;
4968
5038
  function isCaseClause(node: Node): node is CaseClause;
4969
5039
  function isDefaultClause(node: Node): node is DefaultClause;
4970
5040
  function isHeritageClause(node: Node): node is HeritageClause;
@@ -5169,7 +5239,7 @@ declare namespace ts {
5169
5239
  * this list is only the set of defaults that are implicitly included.
5170
5240
  */
5171
5241
  function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
5172
- function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
5242
+ function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache;
5173
5243
  function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
5174
5244
  function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
5175
5245
  function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
@@ -5358,7 +5428,7 @@ declare namespace ts {
5358
5428
  * Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
5359
5429
  * provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
5360
5430
  */
5361
- function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ts.ResolutionMode;
5431
+ function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
5362
5432
  /**
5363
5433
  * Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
5364
5434
  * 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 +5448,7 @@ declare namespace ts {
5378
5448
  */
5379
5449
  function getModeForUsageLocation(file: {
5380
5450
  impliedNodeFormat?: ResolutionMode;
5381
- }, usage: StringLiteralLike): ts.ModuleKind.CommonJS | ts.ModuleKind.ESNext | undefined;
5451
+ }, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
5382
5452
  function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
5383
5453
  /**
5384
5454
  * 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 +5629,8 @@ declare namespace ts {
5559
5629
  */
5560
5630
  emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>;
5561
5631
  }
5562
- function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): ts.EmitAndSemanticDiagnosticsBuilderProgram | undefined;
5563
- function createIncrementalCompilerHost(options: CompilerOptions, system?: ts.System): CompilerHost;
5632
+ function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
5633
+ function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
5564
5634
  function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
5565
5635
  /**
5566
5636
  * Create the watch compiler host for either configFile or fileNames and its options
@@ -5716,8 +5786,8 @@ declare namespace ts {
5716
5786
  * Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
5717
5787
  */
5718
5788
  function createBuilderStatusReporter(system: System, pretty?: boolean): DiagnosticReporter;
5719
- function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: ts.System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportErrorSummary?: ReportEmitErrorSummary): ts.SolutionBuilderHost<T>;
5720
- function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: ts.System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): ts.SolutionBuilderWithWatchHost<T>;
5789
+ function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportErrorSummary?: ReportEmitErrorSummary): SolutionBuilderHost<T>;
5790
+ function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): SolutionBuilderWithWatchHost<T>;
5721
5791
  function createSolutionBuilder<T extends BuilderProgram>(host: SolutionBuilderHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions): SolutionBuilder<T>;
5722
5792
  function createSolutionBuilderWithWatch<T extends BuilderProgram>(host: SolutionBuilderWithWatchHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions, baseWatchOptions?: WatchOptions): SolutionBuilder<T>;
5723
5793
  interface BuildOptions {
@@ -5807,6 +5877,14 @@ declare namespace ts {
5807
5877
  emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject<T> | undefined;
5808
5878
  }
5809
5879
  type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T> | UpdateBundleProject<T>;
5880
+ namespace JsTyping {
5881
+ interface TypingResolutionHost {
5882
+ directoryExists(path: string): boolean;
5883
+ fileExists(fileName: string): boolean;
5884
+ readFile(path: string, encoding?: string): string | undefined;
5885
+ readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
5886
+ }
5887
+ }
5810
5888
  namespace server {
5811
5889
  type ActionSet = "action::set";
5812
5890
  type ActionInvalidate = "action::invalidate";
@@ -5815,8 +5893,9 @@ declare namespace ts {
5815
5893
  type EventBeginInstallTypes = "event::beginInstallTypes";
5816
5894
  type EventEndInstallTypes = "event::endInstallTypes";
5817
5895
  type EventInitializationFailed = "event::initializationFailed";
5896
+ type ActionWatchTypingLocations = "action::watchTypingLocations";
5818
5897
  interface TypingInstallerResponse {
5819
- readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
5898
+ readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed | ActionWatchTypingLocations;
5820
5899
  }
5821
5900
  interface TypingInstallerRequestWithProjectName {
5822
5901
  readonly projectName: string;
@@ -5825,7 +5904,6 @@ declare namespace ts {
5825
5904
  readonly fileNames: string[];
5826
5905
  readonly projectRootPath: Path;
5827
5906
  readonly compilerOptions: CompilerOptions;
5828
- readonly watchOptions?: WatchOptions;
5829
5907
  readonly typeAcquisition: TypeAcquisition;
5830
5908
  readonly unresolvedImports: SortedReadonlyArray<string>;
5831
5909
  readonly cachePath?: string;
@@ -5872,6 +5950,12 @@ declare namespace ts {
5872
5950
  readonly kind: EventEndInstallTypes;
5873
5951
  readonly installSuccess: boolean;
5874
5952
  }
5953
+ interface InstallTypingHost extends JsTyping.TypingResolutionHost {
5954
+ useCaseSensitiveFileNames: boolean;
5955
+ writeFile(path: string, content: string): void;
5956
+ createDirectory(path: string): void;
5957
+ getCurrentDirectory?(): string;
5958
+ }
5875
5959
  interface SetTypings extends ProjectResponse {
5876
5960
  readonly typeAcquisition: TypeAcquisition;
5877
5961
  readonly compilerOptions: CompilerOptions;
@@ -5879,6 +5963,11 @@ declare namespace ts {
5879
5963
  readonly unresolvedImports: SortedReadonlyArray<string>;
5880
5964
  readonly kind: ActionSet;
5881
5965
  }
5966
+ interface WatchTypingLocations extends ProjectResponse {
5967
+ /** if files is undefined, retain same set of watchers */
5968
+ readonly files: readonly string[] | undefined;
5969
+ readonly kind: ActionWatchTypingLocations;
5970
+ }
5882
5971
  }
5883
5972
  function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings;
5884
5973
  /**
@@ -6084,6 +6173,8 @@ declare namespace ts {
6084
6173
  getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
6085
6174
  /** @deprecated Use the signature with `UserPreferences` instead. */
6086
6175
  getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
6176
+ findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, preferences: UserPreferences): readonly RenameLocation[] | undefined;
6177
+ /** @deprecated Pass `providePrefixAndSuffixTextForRename` as part of a `UserPreferences` parameter. */
6087
6178
  findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
6088
6179
  getSmartSelectionRange(fileName: string, position: number): SelectionRange;
6089
6180
  getDefinitionAtPosition(fileName: string, position: number): readonly DefinitionInfo[] | undefined;
@@ -6094,8 +6185,6 @@ declare namespace ts {
6094
6185
  findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined;
6095
6186
  getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined;
6096
6187
  getFileReferences(fileName: string): ReferenceEntry[];
6097
- /** @deprecated */
6098
- getOccurrencesAtPosition(fileName: string, position: number): readonly ReferenceEntry[] | undefined;
6099
6188
  getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[];
6100
6189
  getNavigationBarItems(fileName: string): NavigationBarItem[];
6101
6190
  getNavigationTree(fileName: string): NavigationTree;
@@ -6117,6 +6206,7 @@ declare namespace ts {
6117
6206
  * Editors should call this after `>` is typed.
6118
6207
  */
6119
6208
  getJsxClosingTagAtPosition(fileName: string, position: number): JsxClosingTagInfo | undefined;
6209
+ getLinkedEditingRangeAtPosition(fileName: string, position: number): LinkedEditingInfo | undefined;
6120
6210
  getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined;
6121
6211
  toLineColumnOffset?(fileName: string, position: number): LineAndCharacter;
6122
6212
  getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: readonly number[], formatOptions: FormatCodeSettings, preferences: UserPreferences): readonly CodeFixAction[];
@@ -6130,8 +6220,18 @@ declare namespace ts {
6130
6220
  applyCodeActionCommand(fileName: string, action: CodeActionCommand[]): Promise<ApplyCodeActionCommandResult[]>;
6131
6221
  /** @deprecated `fileName` will be ignored */
6132
6222
  applyCodeActionCommand(fileName: string, action: CodeActionCommand | CodeActionCommand[]): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>;
6133
- getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string): ApplicableRefactorInfo[];
6134
- getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined): RefactorEditInfo | undefined;
6223
+ /**
6224
+ * @param includeInteractiveActions Include refactor actions that require additional arguments to be
6225
+ * passed when calling `getEditsForRefactor`. When true, clients should inspect the `isInteractive`
6226
+ * property of each returned `RefactorActionInfo` and ensure they are able to collect the appropriate
6227
+ * arguments for any interactive action before offering it.
6228
+ */
6229
+ getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string, includeInteractiveActions?: boolean): ApplicableRefactorInfo[];
6230
+ getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined, interactiveRefactorArguments?: InteractiveRefactorArguments): RefactorEditInfo | undefined;
6231
+ getMoveToRefactoringFileSuggestions(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string): {
6232
+ newFileName: string;
6233
+ files: string[];
6234
+ };
6135
6235
  organizeImports(args: OrganizeImportsArgs, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
6136
6236
  getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
6137
6237
  getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean, forceDtsEmit?: boolean): EmitOutput;
@@ -6146,6 +6246,10 @@ declare namespace ts {
6146
6246
  interface JsxClosingTagInfo {
6147
6247
  readonly newText: string;
6148
6248
  }
6249
+ interface LinkedEditingInfo {
6250
+ readonly ranges: TextSpan[];
6251
+ wordPattern?: string;
6252
+ }
6149
6253
  interface CombinedCodeFixScope {
6150
6254
  type: "file";
6151
6255
  fileName: string;
@@ -6398,6 +6502,11 @@ declare namespace ts {
6398
6502
  * The hierarchical dotted name of the refactor action.
6399
6503
  */
6400
6504
  kind?: string;
6505
+ /**
6506
+ * Indicates that the action requires additional arguments to be passed
6507
+ * when calling `getEditsForRefactor`.
6508
+ */
6509
+ isInteractive?: boolean;
6401
6510
  }
6402
6511
  /**
6403
6512
  * A set of edits to make in response to a refactor action, plus an optional
@@ -6408,6 +6517,7 @@ declare namespace ts {
6408
6517
  renameFilename?: string;
6409
6518
  renameLocation?: number;
6410
6519
  commands?: CodeActionCommand[];
6520
+ notApplicableReason?: string;
6411
6521
  }
6412
6522
  type RefactorTriggerReason = "implicit" | "invoked";
6413
6523
  interface TextInsertion {
@@ -6534,6 +6644,7 @@ declare namespace ts {
6534
6644
  readonly insertSpaceBeforeTypeAnnotation?: boolean;
6535
6645
  readonly indentMultiLineObjectLiteralBeginningOnBlankLine?: boolean;
6536
6646
  readonly semicolons?: SemicolonPreference;
6647
+ readonly indentSwitchCase?: boolean;
6537
6648
  }
6538
6649
  interface DefinitionInfo extends DocumentSpan {
6539
6650
  kind: ScriptElementKind;
@@ -6629,6 +6740,9 @@ declare namespace ts {
6629
6740
  interface DocCommentTemplateOptions {
6630
6741
  readonly generateReturnInDocTemplate?: boolean;
6631
6742
  }
6743
+ interface InteractiveRefactorArguments {
6744
+ targetFile: string;
6745
+ }
6632
6746
  interface SignatureHelpParameter {
6633
6747
  name: string;
6634
6748
  documentation: SymbolDisplayPart[];