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

62 lines
1.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 36,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1,
"end": 36,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeArguments": null
}
],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"body": []
}
}
],
"interpreter": null
}