swc/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier-isolatedModules.json

95 lines
1.8 KiB
JSON

{
"type": "Module",
"span": {
"start": 47,
"end": 117,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 47,
"end": 66,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 54,
"end": 66,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 59,
"end": 60,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"members": []
}
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 88,
"end": 117,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 102,
"end": 103,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 102,
"end": 103,
"ctxt": 0
},
"value": "A",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 111,
"end": 116,
"ctxt": 0
},
"value": "./a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": true,
"asserts": null
}
],
"interpreter": null
}