typescript 5.1.0-dev.20230407 → 5.1.0-dev.20230409

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