swc/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json

3631 lines
85 KiB
JSON

{
"type": "Script",
"span": {
"start": 28,
"end": 1550,
"ctxt": 0
},
"body": [
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 28,
"end": 52,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 33,
"end": 35,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 38,
"end": 51,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 40,
"end": 49,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 40,
"end": 41,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 41,
"end": 49,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 43,
"end": 49,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 53,
"end": 82,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": "T2",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 63,
"end": 81,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeLiteral",
"span": {
"start": 68,
"end": 81,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 70,
"end": 79,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 71,
"end": 79,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 73,
"end": 79,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 83,
"end": 102,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 88,
"end": 90,
"ctxt": 0
},
"value": "T3",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 93,
"end": 101,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 93,
"end": 99,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 103,
"end": 130,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 108,
"end": 110,
"ctxt": 0
},
"value": "T4",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 113,
"end": 129,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 114,
"end": 120,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 114,
"end": 120,
"ctxt": 0
},
"kind": "string"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 122,
"end": 128,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 122,
"end": 128,
"ctxt": 0
},
"kind": "number"
}
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 131,
"end": 176,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 136,
"end": 138,
"ctxt": 0
},
"value": "T5",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsMappedType",
"span": {
"start": 141,
"end": 175,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 144,
"end": 164,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 144,
"end": 145,
"ctxt": 0
},
"value": "P",
"optional": false
},
"constraint": {
"type": "TsUnionType",
"span": {
"start": 149,
"end": 164,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 149,
"end": 152,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 149,
"end": 152,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "TsLiteralType",
"span": {
"start": 155,
"end": 158,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 155,
"end": 158,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "TsLiteralType",
"span": {
"start": 161,
"end": 164,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 161,
"end": 164,
"ctxt": 0
},
"value": "c",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 167,
"end": 173,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 178,
"end": 215,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 188,
"end": 190,
"ctxt": 0
},
"value": "I1",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 199,
"end": 201,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 199,
"end": 201,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 202,
"end": 215,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 204,
"end": 213,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 204,
"end": 205,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 205,
"end": 213,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 207,
"end": 213,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 216,
"end": 253,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 226,
"end": 228,
"ctxt": 0
},
"value": "I2",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 237,
"end": 239,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 237,
"end": 239,
"ctxt": 0
},
"value": "T2",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 240,
"end": 253,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 242,
"end": 251,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 242,
"end": 243,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 243,
"end": 251,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 245,
"end": 251,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 254,
"end": 296,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 264,
"end": 266,
"ctxt": 0
},
"value": "I3",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 275,
"end": 277,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 275,
"end": 277,
"ctxt": 0
},
"value": "T3",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 278,
"end": 296,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 280,
"end": 294,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 280,
"end": 286,
"ctxt": 0
},
"value": "length",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 286,
"end": 294,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 288,
"end": 294,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 297,
"end": 334,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 307,
"end": 309,
"ctxt": 0
},
"value": "I4",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 318,
"end": 320,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 318,
"end": 320,
"ctxt": 0
},
"value": "T4",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 321,
"end": 334,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 323,
"end": 332,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "NumericLiteral",
"span": {
"start": 323,
"end": 324,
"ctxt": 0
},
"value": 0.0
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 324,
"end": 332,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 326,
"end": 332,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 335,
"end": 372,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 345,
"end": 347,
"ctxt": 0
},
"value": "I5",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 356,
"end": 358,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 356,
"end": 358,
"ctxt": 0
},
"value": "T5",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 359,
"end": 372,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 361,
"end": 370,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 361,
"end": 362,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 362,
"end": 370,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 364,
"end": 370,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 374,
"end": 408,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 379,
"end": 390,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 390,
"end": 393,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 391,
"end": 392,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 391,
"end": 392,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 396,
"end": 407,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 403,
"end": 407,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 406,
"end": 407,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 406,
"end": 407,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"isAbstract": false
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 426,
"end": 437,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 409,
"end": 459,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 437,
"end": 440,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 438,
"end": 439,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 438,
"end": 439,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 442,
"end": 458,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 444,
"end": 458,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 444,
"end": 455,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 455,
"end": 458,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 456,
"end": 457,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 456,
"end": 457,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
}
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 467,
"end": 469,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": false,
"span": {
"start": 461,
"end": 509,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 498,
"end": 507,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 498,
"end": 499,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 499,
"end": 507,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 501,
"end": 507,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "CallExpression",
"span": {
"start": 478,
"end": 495,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 478,
"end": 489,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 489,
"end": 493,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 490,
"end": 492,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 490,
"end": 492,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeParams": null
}
]
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 516,
"end": 518,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"span": {
"start": 510,
"end": 558,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 547,
"end": 556,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 547,
"end": 548,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 548,
"end": 556,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 550,
"end": 556,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "CallExpression",
"span": {
"start": 527,
"end": 544,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 527,
"end": 538,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 538,
"end": 542,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 539,
"end": 541,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 539,
"end": 541,
"ctxt": 0
},
"value": "T2",
"optional": false
},
"typeParams": null
}
]
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 565,
"end": 567,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": false,
"span": {
"start": 559,
"end": 612,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 596,
"end": 610,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 596,
"end": 602,
"ctxt": 0
},
"value": "length",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 602,
"end": 610,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 604,
"end": 610,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "CallExpression",
"span": {
"start": 576,
"end": 593,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 576,
"end": 587,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 587,
"end": 591,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 588,
"end": 590,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 588,
"end": 590,
"ctxt": 0
},
"value": "T3",
"optional": false
},
"typeParams": null
}
]
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 619,
"end": 621,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": false,
"span": {
"start": 613,
"end": 661,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 650,
"end": 659,
"ctxt": 0
},
"key": {
"type": "NumericLiteral",
"span": {
"start": 650,
"end": 651,
"ctxt": 0
},
"value": 0.0
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 651,
"end": 659,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 653,
"end": 659,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "CallExpression",
"span": {
"start": 630,
"end": 647,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 630,
"end": 641,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 641,
"end": 645,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 642,
"end": 644,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 642,
"end": 644,
"ctxt": 0
},
"value": "T4",
"optional": false
},
"typeParams": null
}
]
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 668,
"end": 670,
"ctxt": 0
},
"value": "C5",
"optional": false
},
"declare": false,
"span": {
"start": 662,
"end": 710,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 699,
"end": 708,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 699,
"end": 700,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 700,
"end": 708,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 702,
"end": 708,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "CallExpression",
"span": {
"start": 679,
"end": 696,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 679,
"end": 690,
"ctxt": 0
},
"value": "Constructor",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 690,
"end": 694,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 691,
"end": 693,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 691,
"end": 693,
"ctxt": 0
},
"value": "T5",
"optional": false
},
"typeParams": null
}
]
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 726,
"end": 728,
"ctxt": 0
},
"value": "CX",
"optional": false
},
"declare": true,
"span": {
"start": 712,
"end": 749,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 731,
"end": 747,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 738,
"end": 739,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 739,
"end": 747,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 741,
"end": 747,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsEnumDeclaration",
"span": {
"start": 750,
"end": 777,
"ctxt": 0
},
"declare": true,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 763,
"end": 765,
"ctxt": 0
},
"value": "EX",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 768,
"end": 769,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 768,
"end": 769,
"ctxt": 0
},
"value": "A",
"optional": false
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 771,
"end": 772,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 771,
"end": 772,
"ctxt": 0
},
"value": "B",
"optional": false
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 774,
"end": 775,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 774,
"end": 775,
"ctxt": 0
},
"value": "C",
"optional": false
},
"init": null
}
]
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 778,
"end": 827,
"ctxt": 0
},
"declare": true,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 796,
"end": 798,
"ctxt": 0
},
"value": "NX",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 799,
"end": 827,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 801,
"end": 825,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 808,
"end": 825,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 814,
"end": 825,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 814,
"end": 815,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 818,
"end": 825,
"ctxt": 0
},
"value": "hello",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
}
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 829,
"end": 850,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 834,
"end": 837,
"ctxt": 0
},
"value": "TCX",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 840,
"end": 849,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 847,
"end": 849,
"ctxt": 0
},
"value": "CX",
"optional": false
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 851,
"end": 872,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 856,
"end": 859,
"ctxt": 0
},
"value": "TEX",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 862,
"end": 871,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 869,
"end": 871,
"ctxt": 0
},
"value": "EX",
"optional": false
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 873,
"end": 894,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 878,
"end": 881,
"ctxt": 0
},
"value": "TNX",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 884,
"end": 893,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 891,
"end": 893,
"ctxt": 0
},
"value": "NX",
"optional": false
}
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 896,
"end": 935,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 906,
"end": 909,
"ctxt": 0
},
"value": "I10",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 918,
"end": 921,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 918,
"end": 921,
"ctxt": 0
},
"value": "TCX",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 922,
"end": 935,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 924,
"end": 933,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 924,
"end": 925,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 925,
"end": 933,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 927,
"end": 933,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 936,
"end": 975,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 946,
"end": 949,
"ctxt": 0
},
"value": "I11",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 958,
"end": 961,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 958,
"end": 961,
"ctxt": 0
},
"value": "TEX",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 962,
"end": 975,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 964,
"end": 973,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 964,
"end": 965,
"ctxt": 0
},
"value": "C",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 965,
"end": 973,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 967,
"end": 973,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 976,
"end": 1015,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 986,
"end": 989,
"ctxt": 0
},
"value": "I12",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 998,
"end": 1001,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 998,
"end": 1001,
"ctxt": 0
},
"value": "TNX",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1002,
"end": 1015,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1004,
"end": 1013,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1004,
"end": 1005,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1005,
"end": 1013,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1007,
"end": 1013,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1016,
"end": 1065,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1026,
"end": 1029,
"ctxt": 0
},
"value": "I14",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1038,
"end": 1041,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1038,
"end": 1041,
"ctxt": 0
},
"value": "TCX",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1042,
"end": 1065,
"ctxt": 0
},
"body": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 1045,
"end": 1054,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1046,
"end": 1054,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1048,
"end": 1054,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1055,
"end": 1063,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1057,
"end": 1063,
"ctxt": 0
},
"kind": "number"
}
},
"readonly": false,
"static": false,
"span": {
"start": 1044,
"end": 1063,
"ctxt": 0
}
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1066,
"end": 1115,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1076,
"end": 1079,
"ctxt": 0
},
"value": "I15",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1088,
"end": 1091,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1088,
"end": 1091,
"ctxt": 0
},
"value": "TEX",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1092,
"end": 1115,
"ctxt": 0
},
"body": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 1095,
"end": 1104,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1096,
"end": 1104,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1098,
"end": 1104,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1105,
"end": 1113,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1107,
"end": 1113,
"ctxt": 0
},
"kind": "number"
}
},
"readonly": false,
"static": false,
"span": {
"start": 1094,
"end": 1113,
"ctxt": 0
}
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1116,
"end": 1165,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1126,
"end": 1129,
"ctxt": 0
},
"value": "I16",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1138,
"end": 1141,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1138,
"end": 1141,
"ctxt": 0
},
"value": "TNX",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1142,
"end": 1165,
"ctxt": 0
},
"body": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 1145,
"end": 1154,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1146,
"end": 1154,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1148,
"end": 1154,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1155,
"end": 1163,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1157,
"end": 1163,
"ctxt": 0
},
"kind": "number"
}
},
"readonly": false,
"static": false,
"span": {
"start": 1144,
"end": 1163,
"ctxt": 0
}
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 1167,
"end": 1210,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 1172,
"end": 1184,
"ctxt": 0
},
"value": "Identifiable",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1184,
"end": 1187,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1185,
"end": 1186,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1185,
"end": 1186,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 1190,
"end": 1209,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 1190,
"end": 1205,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1192,
"end": 1203,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1192,
"end": 1195,
"ctxt": 0
},
"value": "_id",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1195,
"end": 1203,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1197,
"end": 1203,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
},
{
"type": "TsTypeReference",
"span": {
"start": 1208,
"end": 1209,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1208,
"end": 1209,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1212,
"end": 1259,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1222,
"end": 1225,
"ctxt": 0
},
"value": "I20",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1234,
"end": 1245,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1234,
"end": 1241,
"ctxt": 0
},
"value": "Partial",
"optional": false
},
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1241,
"end": 1245,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 1242,
"end": 1244,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1242,
"end": 1244,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeParams": null
}
]
}
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1246,
"end": 1259,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1248,
"end": 1257,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1248,
"end": 1249,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1249,
"end": 1257,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1251,
"end": 1257,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1260,
"end": 1308,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1270,
"end": 1273,
"ctxt": 0
},
"value": "I21",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1282,
"end": 1294,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1282,
"end": 1290,
"ctxt": 0
},
"value": "Readonly",
"optional": false
},
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1290,
"end": 1294,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 1291,
"end": 1293,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1291,
"end": 1293,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeParams": null
}
]
}
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1295,
"end": 1308,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1297,
"end": 1306,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1297,
"end": 1298,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1298,
"end": 1306,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1300,
"end": 1306,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1309,
"end": 1361,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1319,
"end": 1322,
"ctxt": 0
},
"value": "I22",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1331,
"end": 1347,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1331,
"end": 1343,
"ctxt": 0
},
"value": "Identifiable",
"optional": false
},
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1343,
"end": 1347,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 1344,
"end": 1346,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1344,
"end": 1346,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeParams": null
}
]
}
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1348,
"end": 1361,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1350,
"end": 1359,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1350,
"end": 1351,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1351,
"end": 1359,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1353,
"end": 1359,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1362,
"end": 1429,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1372,
"end": 1375,
"ctxt": 0
},
"value": "I23",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1384,
"end": 1415,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1384,
"end": 1396,
"ctxt": 0
},
"value": "Identifiable",
"optional": false
},
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1396,
"end": 1415,
"ctxt": 0
},
"params": [
{
"type": "TsIntersectionType",
"span": {
"start": 1397,
"end": 1414,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 1397,
"end": 1399,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1397,
"end": 1399,
"ctxt": 0
},
"value": "T1",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeLiteral",
"span": {
"start": 1402,
"end": 1414,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1404,
"end": 1413,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1404,
"end": 1405,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1405,
"end": 1413,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1407,
"end": 1413,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
]
}
]
}
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1416,
"end": 1429,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1418,
"end": 1427,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1418,
"end": 1419,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1419,
"end": 1427,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1421,
"end": 1427,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 1431,
"end": 1470,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 1436,
"end": 1437,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1440,
"end": 1469,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 1440,
"end": 1453,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1442,
"end": 1451,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1442,
"end": 1443,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1443,
"end": 1451,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1445,
"end": 1451,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
},
{
"type": "TsTypeLiteral",
"span": {
"start": 1456,
"end": 1469,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1458,
"end": 1467,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1458,
"end": 1459,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1459,
"end": 1467,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1461,
"end": 1467,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1472,
"end": 1509,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1482,
"end": 1485,
"ctxt": 0
},
"value": "I30",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1494,
"end": 1495,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1494,
"end": 1495,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1496,
"end": 1509,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1498,
"end": 1507,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1498,
"end": 1499,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1499,
"end": 1507,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1501,
"end": 1507,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1510,
"end": 1550,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1520,
"end": 1523,
"ctxt": 0
},
"value": "I31",
"optional": false
},
"declare": false,
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1523,
"end": 1526,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1524,
"end": 1525,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1524,
"end": 1525,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 1535,
"end": 1536,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1535,
"end": 1536,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1537,
"end": 1550,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1539,
"end": 1548,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1539,
"end": 1540,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1540,
"end": 1548,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1542,
"end": 1548,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
],
"interpreter": null
}