{ "type": "Script", "span": { "start": 39, "end": 220, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 39, "end": 145, "ctxt": 0 }, "declare": true, "global": false, "id": { "type": "Identifier", "span": { "start": 54, "end": 57, "ctxt": 0 }, "value": "JSX", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 58, "end": 145, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 61, "end": 82, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 71, "end": 78, "ctxt": 0 }, "value": "Element", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 79, "end": 82, "ctxt": 0 }, "body": [] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 84, "end": 143, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 94, "end": 119, "ctxt": 0 }, "value": "ElementAttributesProperty", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 120, "end": 143, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 122, "end": 131, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 122, "end": 125, "ctxt": 0 }, "value": "pr1", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 125, "end": 130, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 127, "end": 130, "ctxt": 0 }, "kind": "any" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 132, "end": 141, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 132, "end": 135, "ctxt": 0 }, "value": "pr2", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 135, "end": 140, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 137, "end": 140, "ctxt": 0 }, "kind": "any" } }, "typeParams": null } ] } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 147, "end": 187, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 157, "end": 161, "ctxt": 0 }, "value": "Obj1", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 162, "end": 187, "ctxt": 0 }, "body": [ { "type": "TsConstructSignatureDeclaration", "span": { "start": 165, "end": 185, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 169, "end": 178, "ctxt": 0 }, "value": "n", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 170, "end": 178, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 172, "end": 178, "ctxt": 0 }, "kind": "string" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 179, "end": 184, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 181, "end": 184, "ctxt": 0 }, "kind": "any" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 188, "end": 203, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 192, "end": 202, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 192, "end": 196, "ctxt": 0 }, "value": "obj1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 196, "end": 202, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 198, "end": 202, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 198, "end": 202, "ctxt": 0 }, "value": "Obj1", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 204, "end": 220, "ctxt": 0 }, "expression": { "type": "JSXElement", "span": { "start": 204, "end": 219, "ctxt": 0 }, "opening": { "type": "JSXOpeningElement", "name": { "type": "Identifier", "span": { "start": 205, "end": 209, "ctxt": 0 }, "value": "obj1", "optional": false }, "span": { "start": 204, "end": 219, "ctxt": 0 }, "attributes": [ { "type": "JSXAttribute", "span": { "start": 210, "end": 216, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 210, "end": 211, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "JSXExpressionContainer", "span": { "start": 212, "end": 216, "ctxt": 0 }, "expression": { "type": "NumericLiteral", "span": { "start": 213, "end": 215, "ctxt": 0 }, "value": 10.0 } } } ], "selfClosing": true, "typeArguments": null }, "children": [], "closing": null } } ], "interpreter": null }