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

91 lines
1.7 KiB
JSON

{
"type": "Module",
"span": {
"start": 48,
"end": 118,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 48,
"end": 67,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 55,
"end": 67,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 60,
"end": 61,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 64,
"end": 66,
"ctxt": 0
},
"members": []
}
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 89,
"end": 118,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 103,
"end": 104,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 103,
"end": 104,
"ctxt": 0
},
"value": "A",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 112,
"end": 117,
"ctxt": 0
},
"value": "./a",
"raw": "'./a'"
},
"typeOnly": true,
"asserts": null
}
],
"interpreter": null
}