@schematics/angular 8.2.0-next.1 → 8.2.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 = "3.4";
17
+ const versionMajorMinor = "3.5";
18
18
  /** The version of the TypeScript compiler release */
19
19
  const version: string;
20
20
  }
@@ -72,7 +72,7 @@ declare namespace ts {
72
72
  pos: number;
73
73
  end: number;
74
74
  }
75
- type JsDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.Unknown | KeywordSyntaxKind;
75
+ type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.BacktickToken | SyntaxKind.Unknown | KeywordSyntaxKind;
76
76
  type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword;
77
77
  type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
78
78
  enum SyntaxKind {
@@ -135,281 +135,283 @@ declare namespace ts {
135
135
  QuestionToken = 56,
136
136
  ColonToken = 57,
137
137
  AtToken = 58,
138
- EqualsToken = 59,
139
- PlusEqualsToken = 60,
140
- MinusEqualsToken = 61,
141
- AsteriskEqualsToken = 62,
142
- AsteriskAsteriskEqualsToken = 63,
143
- SlashEqualsToken = 64,
144
- PercentEqualsToken = 65,
145
- LessThanLessThanEqualsToken = 66,
146
- GreaterThanGreaterThanEqualsToken = 67,
147
- GreaterThanGreaterThanGreaterThanEqualsToken = 68,
148
- AmpersandEqualsToken = 69,
149
- BarEqualsToken = 70,
150
- CaretEqualsToken = 71,
151
- Identifier = 72,
152
- BreakKeyword = 73,
153
- CaseKeyword = 74,
154
- CatchKeyword = 75,
155
- ClassKeyword = 76,
156
- ConstKeyword = 77,
157
- ContinueKeyword = 78,
158
- DebuggerKeyword = 79,
159
- DefaultKeyword = 80,
160
- DeleteKeyword = 81,
161
- DoKeyword = 82,
162
- ElseKeyword = 83,
163
- EnumKeyword = 84,
164
- ExportKeyword = 85,
165
- ExtendsKeyword = 86,
166
- FalseKeyword = 87,
167
- FinallyKeyword = 88,
168
- ForKeyword = 89,
169
- FunctionKeyword = 90,
170
- IfKeyword = 91,
171
- ImportKeyword = 92,
172
- InKeyword = 93,
173
- InstanceOfKeyword = 94,
174
- NewKeyword = 95,
175
- NullKeyword = 96,
176
- ReturnKeyword = 97,
177
- SuperKeyword = 98,
178
- SwitchKeyword = 99,
179
- ThisKeyword = 100,
180
- ThrowKeyword = 101,
181
- TrueKeyword = 102,
182
- TryKeyword = 103,
183
- TypeOfKeyword = 104,
184
- VarKeyword = 105,
185
- VoidKeyword = 106,
186
- WhileKeyword = 107,
187
- WithKeyword = 108,
188
- ImplementsKeyword = 109,
189
- InterfaceKeyword = 110,
190
- LetKeyword = 111,
191
- PackageKeyword = 112,
192
- PrivateKeyword = 113,
193
- ProtectedKeyword = 114,
194
- PublicKeyword = 115,
195
- StaticKeyword = 116,
196
- YieldKeyword = 117,
197
- AbstractKeyword = 118,
198
- AsKeyword = 119,
199
- AnyKeyword = 120,
200
- AsyncKeyword = 121,
201
- AwaitKeyword = 122,
202
- BooleanKeyword = 123,
203
- ConstructorKeyword = 124,
204
- DeclareKeyword = 125,
205
- GetKeyword = 126,
206
- InferKeyword = 127,
207
- IsKeyword = 128,
208
- KeyOfKeyword = 129,
209
- ModuleKeyword = 130,
210
- NamespaceKeyword = 131,
211
- NeverKeyword = 132,
212
- ReadonlyKeyword = 133,
213
- RequireKeyword = 134,
214
- NumberKeyword = 135,
215
- ObjectKeyword = 136,
216
- SetKeyword = 137,
217
- StringKeyword = 138,
218
- SymbolKeyword = 139,
219
- TypeKeyword = 140,
220
- UndefinedKeyword = 141,
221
- UniqueKeyword = 142,
222
- UnknownKeyword = 143,
223
- FromKeyword = 144,
224
- GlobalKeyword = 145,
225
- BigIntKeyword = 146,
226
- OfKeyword = 147,
227
- QualifiedName = 148,
228
- ComputedPropertyName = 149,
229
- TypeParameter = 150,
230
- Parameter = 151,
231
- Decorator = 152,
232
- PropertySignature = 153,
233
- PropertyDeclaration = 154,
234
- MethodSignature = 155,
235
- MethodDeclaration = 156,
236
- Constructor = 157,
237
- GetAccessor = 158,
238
- SetAccessor = 159,
239
- CallSignature = 160,
240
- ConstructSignature = 161,
241
- IndexSignature = 162,
242
- TypePredicate = 163,
243
- TypeReference = 164,
244
- FunctionType = 165,
245
- ConstructorType = 166,
246
- TypeQuery = 167,
247
- TypeLiteral = 168,
248
- ArrayType = 169,
249
- TupleType = 170,
250
- OptionalType = 171,
251
- RestType = 172,
252
- UnionType = 173,
253
- IntersectionType = 174,
254
- ConditionalType = 175,
255
- InferType = 176,
256
- ParenthesizedType = 177,
257
- ThisType = 178,
258
- TypeOperator = 179,
259
- IndexedAccessType = 180,
260
- MappedType = 181,
261
- LiteralType = 182,
262
- ImportType = 183,
263
- ObjectBindingPattern = 184,
264
- ArrayBindingPattern = 185,
265
- BindingElement = 186,
266
- ArrayLiteralExpression = 187,
267
- ObjectLiteralExpression = 188,
268
- PropertyAccessExpression = 189,
269
- ElementAccessExpression = 190,
270
- CallExpression = 191,
271
- NewExpression = 192,
272
- TaggedTemplateExpression = 193,
273
- TypeAssertionExpression = 194,
274
- ParenthesizedExpression = 195,
275
- FunctionExpression = 196,
276
- ArrowFunction = 197,
277
- DeleteExpression = 198,
278
- TypeOfExpression = 199,
279
- VoidExpression = 200,
280
- AwaitExpression = 201,
281
- PrefixUnaryExpression = 202,
282
- PostfixUnaryExpression = 203,
283
- BinaryExpression = 204,
284
- ConditionalExpression = 205,
285
- TemplateExpression = 206,
286
- YieldExpression = 207,
287
- SpreadElement = 208,
288
- ClassExpression = 209,
289
- OmittedExpression = 210,
290
- ExpressionWithTypeArguments = 211,
291
- AsExpression = 212,
292
- NonNullExpression = 213,
293
- MetaProperty = 214,
294
- SyntheticExpression = 215,
295
- TemplateSpan = 216,
296
- SemicolonClassElement = 217,
297
- Block = 218,
298
- VariableStatement = 219,
299
- EmptyStatement = 220,
300
- ExpressionStatement = 221,
301
- IfStatement = 222,
302
- DoStatement = 223,
303
- WhileStatement = 224,
304
- ForStatement = 225,
305
- ForInStatement = 226,
306
- ForOfStatement = 227,
307
- ContinueStatement = 228,
308
- BreakStatement = 229,
309
- ReturnStatement = 230,
310
- WithStatement = 231,
311
- SwitchStatement = 232,
312
- LabeledStatement = 233,
313
- ThrowStatement = 234,
314
- TryStatement = 235,
315
- DebuggerStatement = 236,
316
- VariableDeclaration = 237,
317
- VariableDeclarationList = 238,
318
- FunctionDeclaration = 239,
319
- ClassDeclaration = 240,
320
- InterfaceDeclaration = 241,
321
- TypeAliasDeclaration = 242,
322
- EnumDeclaration = 243,
323
- ModuleDeclaration = 244,
324
- ModuleBlock = 245,
325
- CaseBlock = 246,
326
- NamespaceExportDeclaration = 247,
327
- ImportEqualsDeclaration = 248,
328
- ImportDeclaration = 249,
329
- ImportClause = 250,
330
- NamespaceImport = 251,
331
- NamedImports = 252,
332
- ImportSpecifier = 253,
333
- ExportAssignment = 254,
334
- ExportDeclaration = 255,
335
- NamedExports = 256,
336
- ExportSpecifier = 257,
337
- MissingDeclaration = 258,
338
- ExternalModuleReference = 259,
339
- JsxElement = 260,
340
- JsxSelfClosingElement = 261,
341
- JsxOpeningElement = 262,
342
- JsxClosingElement = 263,
343
- JsxFragment = 264,
344
- JsxOpeningFragment = 265,
345
- JsxClosingFragment = 266,
346
- JsxAttribute = 267,
347
- JsxAttributes = 268,
348
- JsxSpreadAttribute = 269,
349
- JsxExpression = 270,
350
- CaseClause = 271,
351
- DefaultClause = 272,
352
- HeritageClause = 273,
353
- CatchClause = 274,
354
- PropertyAssignment = 275,
355
- ShorthandPropertyAssignment = 276,
356
- SpreadAssignment = 277,
357
- EnumMember = 278,
358
- UnparsedPrologue = 279,
359
- UnparsedPrepend = 280,
360
- UnparsedText = 281,
361
- UnparsedInternalText = 282,
362
- UnparsedSyntheticReference = 283,
363
- SourceFile = 284,
364
- Bundle = 285,
365
- UnparsedSource = 286,
366
- InputFiles = 287,
367
- JSDocTypeExpression = 288,
368
- JSDocAllType = 289,
369
- JSDocUnknownType = 290,
370
- JSDocNullableType = 291,
371
- JSDocNonNullableType = 292,
372
- JSDocOptionalType = 293,
373
- JSDocFunctionType = 294,
374
- JSDocVariadicType = 295,
375
- JSDocComment = 296,
376
- JSDocTypeLiteral = 297,
377
- JSDocSignature = 298,
378
- JSDocTag = 299,
379
- JSDocAugmentsTag = 300,
380
- JSDocClassTag = 301,
381
- JSDocCallbackTag = 302,
382
- JSDocEnumTag = 303,
383
- JSDocParameterTag = 304,
384
- JSDocReturnTag = 305,
385
- JSDocThisTag = 306,
386
- JSDocTypeTag = 307,
387
- JSDocTemplateTag = 308,
388
- JSDocTypedefTag = 309,
389
- JSDocPropertyTag = 310,
390
- SyntaxList = 311,
391
- NotEmittedStatement = 312,
392
- PartiallyEmittedExpression = 313,
393
- CommaListExpression = 314,
394
- MergeDeclarationMarker = 315,
395
- EndOfDeclarationMarker = 316,
396
- Count = 317,
397
- FirstAssignment = 59,
398
- LastAssignment = 71,
399
- FirstCompoundAssignment = 60,
400
- LastCompoundAssignment = 71,
401
- FirstReservedWord = 73,
402
- LastReservedWord = 108,
403
- FirstKeyword = 73,
404
- LastKeyword = 147,
405
- FirstFutureReservedWord = 109,
406
- LastFutureReservedWord = 117,
407
- FirstTypeNode = 163,
408
- LastTypeNode = 183,
138
+ /** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTemplateLiteral and related kinds. */
139
+ BacktickToken = 59,
140
+ EqualsToken = 60,
141
+ PlusEqualsToken = 61,
142
+ MinusEqualsToken = 62,
143
+ AsteriskEqualsToken = 63,
144
+ AsteriskAsteriskEqualsToken = 64,
145
+ SlashEqualsToken = 65,
146
+ PercentEqualsToken = 66,
147
+ LessThanLessThanEqualsToken = 67,
148
+ GreaterThanGreaterThanEqualsToken = 68,
149
+ GreaterThanGreaterThanGreaterThanEqualsToken = 69,
150
+ AmpersandEqualsToken = 70,
151
+ BarEqualsToken = 71,
152
+ CaretEqualsToken = 72,
153
+ Identifier = 73,
154
+ BreakKeyword = 74,
155
+ CaseKeyword = 75,
156
+ CatchKeyword = 76,
157
+ ClassKeyword = 77,
158
+ ConstKeyword = 78,
159
+ ContinueKeyword = 79,
160
+ DebuggerKeyword = 80,
161
+ DefaultKeyword = 81,
162
+ DeleteKeyword = 82,
163
+ DoKeyword = 83,
164
+ ElseKeyword = 84,
165
+ EnumKeyword = 85,
166
+ ExportKeyword = 86,
167
+ ExtendsKeyword = 87,
168
+ FalseKeyword = 88,
169
+ FinallyKeyword = 89,
170
+ ForKeyword = 90,
171
+ FunctionKeyword = 91,
172
+ IfKeyword = 92,
173
+ ImportKeyword = 93,
174
+ InKeyword = 94,
175
+ InstanceOfKeyword = 95,
176
+ NewKeyword = 96,
177
+ NullKeyword = 97,
178
+ ReturnKeyword = 98,
179
+ SuperKeyword = 99,
180
+ SwitchKeyword = 100,
181
+ ThisKeyword = 101,
182
+ ThrowKeyword = 102,
183
+ TrueKeyword = 103,
184
+ TryKeyword = 104,
185
+ TypeOfKeyword = 105,
186
+ VarKeyword = 106,
187
+ VoidKeyword = 107,
188
+ WhileKeyword = 108,
189
+ WithKeyword = 109,
190
+ ImplementsKeyword = 110,
191
+ InterfaceKeyword = 111,
192
+ LetKeyword = 112,
193
+ PackageKeyword = 113,
194
+ PrivateKeyword = 114,
195
+ ProtectedKeyword = 115,
196
+ PublicKeyword = 116,
197
+ StaticKeyword = 117,
198
+ YieldKeyword = 118,
199
+ AbstractKeyword = 119,
200
+ AsKeyword = 120,
201
+ AnyKeyword = 121,
202
+ AsyncKeyword = 122,
203
+ AwaitKeyword = 123,
204
+ BooleanKeyword = 124,
205
+ ConstructorKeyword = 125,
206
+ DeclareKeyword = 126,
207
+ GetKeyword = 127,
208
+ InferKeyword = 128,
209
+ IsKeyword = 129,
210
+ KeyOfKeyword = 130,
211
+ ModuleKeyword = 131,
212
+ NamespaceKeyword = 132,
213
+ NeverKeyword = 133,
214
+ ReadonlyKeyword = 134,
215
+ RequireKeyword = 135,
216
+ NumberKeyword = 136,
217
+ ObjectKeyword = 137,
218
+ SetKeyword = 138,
219
+ StringKeyword = 139,
220
+ SymbolKeyword = 140,
221
+ TypeKeyword = 141,
222
+ UndefinedKeyword = 142,
223
+ UniqueKeyword = 143,
224
+ UnknownKeyword = 144,
225
+ FromKeyword = 145,
226
+ GlobalKeyword = 146,
227
+ BigIntKeyword = 147,
228
+ OfKeyword = 148,
229
+ QualifiedName = 149,
230
+ ComputedPropertyName = 150,
231
+ TypeParameter = 151,
232
+ Parameter = 152,
233
+ Decorator = 153,
234
+ PropertySignature = 154,
235
+ PropertyDeclaration = 155,
236
+ MethodSignature = 156,
237
+ MethodDeclaration = 157,
238
+ Constructor = 158,
239
+ GetAccessor = 159,
240
+ SetAccessor = 160,
241
+ CallSignature = 161,
242
+ ConstructSignature = 162,
243
+ IndexSignature = 163,
244
+ TypePredicate = 164,
245
+ TypeReference = 165,
246
+ FunctionType = 166,
247
+ ConstructorType = 167,
248
+ TypeQuery = 168,
249
+ TypeLiteral = 169,
250
+ ArrayType = 170,
251
+ TupleType = 171,
252
+ OptionalType = 172,
253
+ RestType = 173,
254
+ UnionType = 174,
255
+ IntersectionType = 175,
256
+ ConditionalType = 176,
257
+ InferType = 177,
258
+ ParenthesizedType = 178,
259
+ ThisType = 179,
260
+ TypeOperator = 180,
261
+ IndexedAccessType = 181,
262
+ MappedType = 182,
263
+ LiteralType = 183,
264
+ ImportType = 184,
265
+ ObjectBindingPattern = 185,
266
+ ArrayBindingPattern = 186,
267
+ BindingElement = 187,
268
+ ArrayLiteralExpression = 188,
269
+ ObjectLiteralExpression = 189,
270
+ PropertyAccessExpression = 190,
271
+ ElementAccessExpression = 191,
272
+ CallExpression = 192,
273
+ NewExpression = 193,
274
+ TaggedTemplateExpression = 194,
275
+ TypeAssertionExpression = 195,
276
+ ParenthesizedExpression = 196,
277
+ FunctionExpression = 197,
278
+ ArrowFunction = 198,
279
+ DeleteExpression = 199,
280
+ TypeOfExpression = 200,
281
+ VoidExpression = 201,
282
+ AwaitExpression = 202,
283
+ PrefixUnaryExpression = 203,
284
+ PostfixUnaryExpression = 204,
285
+ BinaryExpression = 205,
286
+ ConditionalExpression = 206,
287
+ TemplateExpression = 207,
288
+ YieldExpression = 208,
289
+ SpreadElement = 209,
290
+ ClassExpression = 210,
291
+ OmittedExpression = 211,
292
+ ExpressionWithTypeArguments = 212,
293
+ AsExpression = 213,
294
+ NonNullExpression = 214,
295
+ MetaProperty = 215,
296
+ SyntheticExpression = 216,
297
+ TemplateSpan = 217,
298
+ SemicolonClassElement = 218,
299
+ Block = 219,
300
+ VariableStatement = 220,
301
+ EmptyStatement = 221,
302
+ ExpressionStatement = 222,
303
+ IfStatement = 223,
304
+ DoStatement = 224,
305
+ WhileStatement = 225,
306
+ ForStatement = 226,
307
+ ForInStatement = 227,
308
+ ForOfStatement = 228,
309
+ ContinueStatement = 229,
310
+ BreakStatement = 230,
311
+ ReturnStatement = 231,
312
+ WithStatement = 232,
313
+ SwitchStatement = 233,
314
+ LabeledStatement = 234,
315
+ ThrowStatement = 235,
316
+ TryStatement = 236,
317
+ DebuggerStatement = 237,
318
+ VariableDeclaration = 238,
319
+ VariableDeclarationList = 239,
320
+ FunctionDeclaration = 240,
321
+ ClassDeclaration = 241,
322
+ InterfaceDeclaration = 242,
323
+ TypeAliasDeclaration = 243,
324
+ EnumDeclaration = 244,
325
+ ModuleDeclaration = 245,
326
+ ModuleBlock = 246,
327
+ CaseBlock = 247,
328
+ NamespaceExportDeclaration = 248,
329
+ ImportEqualsDeclaration = 249,
330
+ ImportDeclaration = 250,
331
+ ImportClause = 251,
332
+ NamespaceImport = 252,
333
+ NamedImports = 253,
334
+ ImportSpecifier = 254,
335
+ ExportAssignment = 255,
336
+ ExportDeclaration = 256,
337
+ NamedExports = 257,
338
+ ExportSpecifier = 258,
339
+ MissingDeclaration = 259,
340
+ ExternalModuleReference = 260,
341
+ JsxElement = 261,
342
+ JsxSelfClosingElement = 262,
343
+ JsxOpeningElement = 263,
344
+ JsxClosingElement = 264,
345
+ JsxFragment = 265,
346
+ JsxOpeningFragment = 266,
347
+ JsxClosingFragment = 267,
348
+ JsxAttribute = 268,
349
+ JsxAttributes = 269,
350
+ JsxSpreadAttribute = 270,
351
+ JsxExpression = 271,
352
+ CaseClause = 272,
353
+ DefaultClause = 273,
354
+ HeritageClause = 274,
355
+ CatchClause = 275,
356
+ PropertyAssignment = 276,
357
+ ShorthandPropertyAssignment = 277,
358
+ SpreadAssignment = 278,
359
+ EnumMember = 279,
360
+ UnparsedPrologue = 280,
361
+ UnparsedPrepend = 281,
362
+ UnparsedText = 282,
363
+ UnparsedInternalText = 283,
364
+ UnparsedSyntheticReference = 284,
365
+ SourceFile = 285,
366
+ Bundle = 286,
367
+ UnparsedSource = 287,
368
+ InputFiles = 288,
369
+ JSDocTypeExpression = 289,
370
+ JSDocAllType = 290,
371
+ JSDocUnknownType = 291,
372
+ JSDocNullableType = 292,
373
+ JSDocNonNullableType = 293,
374
+ JSDocOptionalType = 294,
375
+ JSDocFunctionType = 295,
376
+ JSDocVariadicType = 296,
377
+ JSDocComment = 297,
378
+ JSDocTypeLiteral = 298,
379
+ JSDocSignature = 299,
380
+ JSDocTag = 300,
381
+ JSDocAugmentsTag = 301,
382
+ JSDocClassTag = 302,
383
+ JSDocCallbackTag = 303,
384
+ JSDocEnumTag = 304,
385
+ JSDocParameterTag = 305,
386
+ JSDocReturnTag = 306,
387
+ JSDocThisTag = 307,
388
+ JSDocTypeTag = 308,
389
+ JSDocTemplateTag = 309,
390
+ JSDocTypedefTag = 310,
391
+ JSDocPropertyTag = 311,
392
+ SyntaxList = 312,
393
+ NotEmittedStatement = 313,
394
+ PartiallyEmittedExpression = 314,
395
+ CommaListExpression = 315,
396
+ MergeDeclarationMarker = 316,
397
+ EndOfDeclarationMarker = 317,
398
+ Count = 318,
399
+ FirstAssignment = 60,
400
+ LastAssignment = 72,
401
+ FirstCompoundAssignment = 61,
402
+ LastCompoundAssignment = 72,
403
+ FirstReservedWord = 74,
404
+ LastReservedWord = 109,
405
+ FirstKeyword = 74,
406
+ LastKeyword = 148,
407
+ FirstFutureReservedWord = 110,
408
+ LastFutureReservedWord = 118,
409
+ FirstTypeNode = 164,
410
+ LastTypeNode = 184,
409
411
  FirstPunctuation = 18,
410
- LastPunctuation = 71,
412
+ LastPunctuation = 72,
411
413
  FirstToken = 0,
412
- LastToken = 147,
414
+ LastToken = 148,
413
415
  FirstTriviaToken = 2,
414
416
  LastTriviaToken = 7,
415
417
  FirstLiteralToken = 8,
@@ -417,12 +419,12 @@ declare namespace ts {
417
419
  FirstTemplateToken = 14,
418
420
  LastTemplateToken = 17,
419
421
  FirstBinaryOperator = 28,
420
- LastBinaryOperator = 71,
421
- FirstNode = 148,
422
- FirstJSDocNode = 288,
423
- LastJSDocNode = 310,
424
- FirstJSDocTagNode = 299,
425
- LastJSDocTagNode = 310,
422
+ LastBinaryOperator = 72,
423
+ FirstNode = 149,
424
+ FirstJSDocNode = 289,
425
+ LastJSDocNode = 311,
426
+ FirstJSDocTagNode = 300,
427
+ LastJSDocTagNode = 311,
426
428
  }
427
429
  enum NodeFlags {
428
430
  None = 0,
@@ -626,7 +628,7 @@ declare namespace ts {
626
628
  initializer?: Expression;
627
629
  }
628
630
  interface ObjectLiteralElement extends NamedDeclaration {
629
- _objectLiteralBrandBrand: any;
631
+ _objectLiteralBrand: any;
630
632
  name?: PropertyName;
631
633
  }
632
634
  /** Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute. */
@@ -1601,7 +1603,7 @@ declare namespace ts {
1601
1603
  }
1602
1604
  interface JSDocTypeTag extends JSDocTag {
1603
1605
  kind: SyntaxKind.JSDocTypeTag;
1604
- typeExpression?: JSDocTypeExpression;
1606
+ typeExpression: JSDocTypeExpression;
1605
1607
  }
1606
1608
  interface JSDocTypedefTag extends JSDocTag, NamedDeclaration {
1607
1609
  parent: JSDoc;
@@ -1877,13 +1879,18 @@ declare namespace ts {
1877
1879
  sourceFile: SourceFile;
1878
1880
  references?: ReadonlyArray<ResolvedProjectReference | undefined>;
1879
1881
  }
1882
+ type CustomTransformerFactory = (context: TransformationContext) => CustomTransformer;
1883
+ interface CustomTransformer {
1884
+ transformSourceFile(node: SourceFile): SourceFile;
1885
+ transformBundle(node: Bundle): Bundle;
1886
+ }
1880
1887
  interface CustomTransformers {
1881
1888
  /** Custom transformers to evaluate before built-in .js transformations. */
1882
- before?: TransformerFactory<SourceFile>[];
1889
+ before?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
1883
1890
  /** Custom transformers to evaluate after built-in .js transformations. */
1884
- after?: TransformerFactory<SourceFile>[];
1891
+ after?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
1885
1892
  /** Custom transformers to evaluate after built-in .d.ts transformations. */
1886
- afterDeclarations?: TransformerFactory<Bundle | SourceFile>[];
1893
+ afterDeclarations?: (TransformerFactory<Bundle | SourceFile> | CustomTransformerFactory)[];
1887
1894
  }
1888
1895
  interface SourceMapSpan {
1889
1896
  /** Line number in the .js file. */
@@ -1962,6 +1969,7 @@ declare namespace ts {
1962
1969
  */
1963
1970
  getExportSymbolOfSymbol(symbol: Symbol): Symbol;
1964
1971
  getPropertySymbolOfDestructuringAssignment(location: Identifier): Symbol | undefined;
1972
+ getTypeOfAssignmentPattern(pattern: AssignmentPattern): Type;
1965
1973
  getTypeAtLocation(node: Node): Type;
1966
1974
  getTypeFromTypeNode(node: TypeNode): Type;
1967
1975
  signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): string;
@@ -2359,7 +2367,8 @@ declare namespace ts {
2359
2367
  objectType: Type;
2360
2368
  indexType: Type;
2361
2369
  constraint?: Type;
2362
- simplified?: Type;
2370
+ simplifiedForReading?: Type;
2371
+ simplifiedForWriting?: Type;
2363
2372
  }
2364
2373
  type TypeVariable = TypeParameter | IndexedAccessType;
2365
2374
  interface IndexType extends InstantiableType {
@@ -2382,8 +2391,8 @@ declare namespace ts {
2382
2391
  root: ConditionalRoot;
2383
2392
  checkType: Type;
2384
2393
  extendsType: Type;
2385
- trueType: Type;
2386
- falseType: Type;
2394
+ resolvedTrueType: Type;
2395
+ resolvedFalseType: Type;
2387
2396
  }
2388
2397
  interface SubstitutionType extends InstantiableType {
2389
2398
  typeVariable: TypeVariable;
@@ -2410,12 +2419,13 @@ declare namespace ts {
2410
2419
  enum InferencePriority {
2411
2420
  NakedTypeVariable = 1,
2412
2421
  HomomorphicMappedType = 2,
2413
- MappedTypeConstraint = 4,
2414
- ReturnType = 8,
2415
- LiteralKeyof = 16,
2416
- NoConstraints = 32,
2417
- AlwaysStrict = 64,
2418
- PriorityImpliesCombination = 28
2422
+ PartialHomomorphicMappedType = 4,
2423
+ MappedTypeConstraint = 8,
2424
+ ReturnType = 16,
2425
+ LiteralKeyof = 32,
2426
+ NoConstraints = 64,
2427
+ AlwaysStrict = 128,
2428
+ PriorityImpliesCombination = 56
2419
2429
  }
2420
2430
  /** @deprecated Use FileExtensionInfo instead. */
2421
2431
  type JsFileExtensionInfo = FileExtensionInfo;
@@ -2489,6 +2499,7 @@ declare namespace ts {
2489
2499
  interface CompilerOptions {
2490
2500
  allowJs?: boolean;
2491
2501
  allowSyntheticDefaultImports?: boolean;
2502
+ allowUmdGlobalAccess?: boolean;
2492
2503
  allowUnreachableCode?: boolean;
2493
2504
  allowUnusedLabels?: boolean;
2494
2505
  alwaysStrict?: boolean;
@@ -2621,9 +2632,10 @@ declare namespace ts {
2621
2632
  ES2017 = 4,
2622
2633
  ES2018 = 5,
2623
2634
  ES2019 = 6,
2624
- ESNext = 7,
2635
+ ES2020 = 7,
2636
+ ESNext = 8,
2625
2637
  JSON = 100,
2626
- Latest = 7
2638
+ Latest = 8
2627
2639
  }
2628
2640
  enum LanguageVariant {
2629
2641
  Standard = 0,
@@ -2756,6 +2768,7 @@ declare namespace ts {
2756
2768
  resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[];
2757
2769
  getEnvironmentVariable?(name: string): string | undefined;
2758
2770
  createHash?(data: string): string;
2771
+ getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
2759
2772
  }
2760
2773
  interface SourceMapRange extends TextRange {
2761
2774
  source?: SourceMapSource;
@@ -3159,7 +3172,7 @@ declare namespace ts {
3159
3172
  reScanJsxToken(): JsxTokenSyntaxKind;
3160
3173
  reScanLessThanToken(): SyntaxKind;
3161
3174
  scanJsxToken(): JsxTokenSyntaxKind;
3162
- scanJSDocToken(): JsDocSyntaxKind;
3175
+ scanJsDocToken(): JSDocSyntaxKind;
3163
3176
  scan(): SyntaxKind;
3164
3177
  getText(): string;
3165
3178
  setText(text: string | undefined, start?: number, length?: number): void;
@@ -3627,7 +3640,7 @@ declare namespace ts {
3627
3640
  /**
3628
3641
  * Reads the config file, reports errors if any and exits if the config file cannot be found
3629
3642
  */
3630
- function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost): ParsedCommandLine | undefined;
3643
+ function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine | undefined;
3631
3644
  /**
3632
3645
  * Read tsconfig.json file
3633
3646
  * @param fileName The path to the config file
@@ -3661,7 +3674,7 @@ declare namespace ts {
3661
3674
  * @param basePath A root directory to resolve relative path entries in the config
3662
3675
  * file to. e.g. outDir
3663
3676
  */
3664
- function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine;
3677
+ function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
3665
3678
  /**
3666
3679
  * Parse the contents of a config file (tsconfig.json).
3667
3680
  * @param jsonNode The contents of the config file to parse
@@ -3669,7 +3682,20 @@ declare namespace ts {
3669
3682
  * @param basePath A root directory to resolve relative path entries in the config
3670
3683
  * file to. e.g. outDir
3671
3684
  */
3672
- function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine;
3685
+ function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
3686
+ interface ParsedTsconfig {
3687
+ raw: any;
3688
+ options?: CompilerOptions;
3689
+ typeAcquisition?: TypeAcquisition;
3690
+ /**
3691
+ * Note that the case of the config path has not yet been normalized, as no files have been imported into the project yet
3692
+ */
3693
+ extendedConfigPath?: string;
3694
+ }
3695
+ interface ExtendedConfigCacheEntry {
3696
+ extendedResult: TsConfigSourceFile;
3697
+ extendedConfig: ParsedTsconfig | undefined;
3698
+ }
3673
3699
  function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): {
3674
3700
  options: CompilerOptions;
3675
3701
  errors: Diagnostic[];
@@ -3714,7 +3740,7 @@ declare namespace ts {
3714
3740
  get(directory: string): ResolvedModuleWithFailedLookupLocations | undefined;
3715
3741
  set(directory: string, result: ResolvedModuleWithFailedLookupLocations): void;
3716
3742
  }
3717
- function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string): ModuleResolutionCache;
3743
+ function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
3718
3744
  function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined;
3719
3745
  function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
3720
3746
  function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
@@ -3837,7 +3863,7 @@ declare namespace ts {
3837
3863
  function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression;
3838
3864
  function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression;
3839
3865
  function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression;
3840
- function createPropertyAccess(expression: Expression, name: string | Identifier | undefined): PropertyAccessExpression;
3866
+ function createPropertyAccess(expression: Expression, name: string | Identifier): PropertyAccessExpression;
3841
3867
  function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression;
3842
3868
  function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression;
3843
3869
  function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression;
@@ -4052,7 +4078,7 @@ declare namespace ts {
4052
4078
  function createInputFiles(javascriptText: string, declarationText: string): InputFiles;
4053
4079
  function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles;
4054
4080
  function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles;
4055
- function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle;
4081
+ function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle;
4056
4082
  function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression;
4057
4083
  function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression;
4058
4084
  function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression;
@@ -4540,13 +4566,12 @@ declare namespace ts.server {
4540
4566
  type ActionSet = "action::set";
4541
4567
  type ActionInvalidate = "action::invalidate";
4542
4568
  type ActionPackageInstalled = "action::packageInstalled";
4543
- type ActionValueInspected = "action::valueInspected";
4544
4569
  type EventTypesRegistry = "event::typesRegistry";
4545
4570
  type EventBeginInstallTypes = "event::beginInstallTypes";
4546
4571
  type EventEndInstallTypes = "event::endInstallTypes";
4547
4572
  type EventInitializationFailed = "event::initializationFailed";
4548
4573
  interface TypingInstallerResponse {
4549
- readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | ActionValueInspected | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
4574
+ readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
4550
4575
  }
4551
4576
  interface TypingInstallerRequestWithProjectName {
4552
4577
  readonly projectName: string;
@@ -4785,6 +4810,7 @@ declare namespace ts {
4785
4810
  getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
4786
4811
  getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
4787
4812
  findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): ReadonlyArray<RenameLocation> | undefined;
4813
+ getSmartSelectionRange(fileName: string, position: number): SelectionRange;
4788
4814
  getDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined;
4789
4815
  getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan | undefined;
4790
4816
  getTypeDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined;
@@ -4979,16 +5005,9 @@ declare namespace ts {
4979
5005
  changes: ReadonlyArray<FileTextChanges>;
4980
5006
  commands?: ReadonlyArray<CodeActionCommand>;
4981
5007
  }
4982
- type CodeActionCommand = InstallPackageAction | GenerateTypesAction;
5008
+ type CodeActionCommand = InstallPackageAction;
4983
5009
  interface InstallPackageAction {
4984
5010
  }
4985
- interface GenerateTypesAction extends GenerateTypesOptions {
4986
- }
4987
- interface GenerateTypesOptions {
4988
- readonly file: string;
4989
- readonly fileToGenerateTypesFor: string;
4990
- readonly outputFileName: string;
4991
- }
4992
5011
  /**
4993
5012
  * A set of one or more available refactoring actions, grouped under a parent refactoring.
4994
5013
  */
@@ -5236,6 +5255,10 @@ declare namespace ts {
5236
5255
  displayParts: SymbolDisplayPart[];
5237
5256
  isOptional: boolean;
5238
5257
  }
5258
+ interface SelectionRange {
5259
+ textSpan: TextSpan;
5260
+ parent?: SelectionRange;
5261
+ }
5239
5262
  /**
5240
5263
  * Represents a single signature to show in signature help.
5241
5264
  * The id is used for subsequent calls into the language service to ask questions about the
@@ -5612,10 +5635,6 @@ declare namespace ts {
5612
5635
  function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput;
5613
5636
  function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[], moduleName?: string): string;
5614
5637
  }
5615
- declare namespace ts {
5616
- function generateTypesForModule(name: string, moduleValue: unknown, formatSettings: FormatCodeSettings): string;
5617
- function generateTypesForGlobal(name: string, globalValue: unknown, formatSettings: FormatCodeSettings): string;
5618
- }
5619
5638
  declare namespace ts {
5620
5639
  /** The version of the language service API */
5621
5640
  const servicesVersion = "0.8";