| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":87,"index":87}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module. (1:55)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":87,"index":87}}, |
| 10 |
"sourceType": "module", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "DeclareModule", |
| 15 |
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":87,"index":87}}, |
| 16 |
"id": { |
| 17 |
"type": "StringLiteral", |
| 18 |
"start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}}, |
| 19 |
"extra": { |
| 20 |
"rawValue": "foo", |
| 21 |
"raw": "\"foo\"" |
| 22 |
}, |
| 23 |
"value": "foo" |
| 24 |
}, |
| 25 |
"body": { |
| 26 |
"type": "BlockStatement", |
| 27 |
"start":21,"end":87,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":87,"index":87}}, |
| 28 |
"body": [ |
| 29 |
{ |
| 30 |
"type": "DeclareModuleExports", |
| 31 |
"start":23,"end":54,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":54,"index":54}}, |
| 32 |
"typeAnnotation": { |
| 33 |
"type": "TypeAnnotation", |
| 34 |
"start":45,"end":53,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":53,"index":53}}, |
| 35 |
"typeAnnotation": { |
| 36 |
"type": "NumberTypeAnnotation", |
| 37 |
"start":47,"end":53,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":53,"index":53}} |
| 38 |
} |
| 39 |
} |
| 40 |
}, |
| 41 |
{ |
| 42 |
"type": "DeclareExportDeclaration", |
| 43 |
"start":55,"end":84,"loc":{"start":{"line":1,"column":55,"index":55},"end":{"line":1,"column":84,"index":84}}, |
| 44 |
"declaration": { |
| 45 |
"type": "DeclareVariable", |
| 46 |
"start":70,"end":84,"loc":{"start":{"line":1,"column":70,"index":70},"end":{"line":1,"column":84,"index":84}}, |
| 47 |
"id": { |
| 48 |
"type": "Identifier", |
| 49 |
"start":74,"end":83,"loc":{"start":{"line":1,"column":74,"index":74},"end":{"line":1,"column":83,"index":83},"identifierName":"a"}, |
| 50 |
"name": "a", |
| 51 |
"typeAnnotation": { |
| 52 |
"type": "TypeAnnotation", |
| 53 |
"start":75,"end":83,"loc":{"start":{"line":1,"column":75,"index":75},"end":{"line":1,"column":83,"index":83}}, |
| 54 |
"typeAnnotation": { |
| 55 |
"type": "NumberTypeAnnotation", |
| 56 |
"start":77,"end":83,"loc":{"start":{"line":1,"column":77,"index":77},"end":{"line":1,"column":83,"index":83}} |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
}, |
| 61 |
"default": false |
| 62 |
} |
| 63 |
] |
| 64 |
}, |
| 65 |
"kind": "ES" |
| 66 |
} |
| 67 |
], |
| 68 |
"directives": [] |
| 69 |
} |
| 70 |
} |