{ "type": "Script", "span": { "start": 17, "end": 231, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 17, "end": 74, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 27, "end": 37, "ctxt": 0 }, "value": "ISomething", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 38, "end": 74, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 44, "end": 56, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 44, "end": 47, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 47, "end": 55, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 49, "end": 55, "ctxt": 0 }, "kind": "string" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 61, "end": 72, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 61, "end": 64, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 64, "end": 72, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 66, "end": 72, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 85, "end": 88, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 89, "end": 91, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 89, "end": 91, "ctxt": 0 }, "properties": [], "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 93, "end": 115, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 93, "end": 115, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 94, "end": 97, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 94, "end": 97, "ctxt": 0 }, "value": "foo", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 99, "end": 102, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 99, "end": 102, "ctxt": 0 }, "value": "bar", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 103, "end": 115, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 105, "end": 115, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 105, "end": 115, "ctxt": 0 }, "value": "ISomething", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 76, "end": 119, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 117, "end": 119, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 130, "end": 133, "ctxt": 0 }, "value": "baz", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 134, "end": 136, "ctxt": 0 }, "decorators": [], "pat": { "type": "ArrayPattern", "span": { "start": 134, "end": 136, "ctxt": 0 }, "elements": [], "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 138, "end": 160, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 138, "end": 160, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 139, "end": 142, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 139, "end": 142, "ctxt": 0 }, "value": "foo", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 144, "end": 147, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 144, "end": 147, "ctxt": 0 }, "value": "bar", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 148, "end": 160, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 150, "end": 160, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 150, "end": 160, "ctxt": 0 }, "value": "ISomething", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 121, "end": 164, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 162, "end": 164, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 175, "end": 178, "ctxt": 0 }, "value": "one", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 179, "end": 181, "ctxt": 0 }, "decorators": [], "pat": { "type": "ArrayPattern", "span": { "start": 179, "end": 181, "ctxt": 0 }, "elements": [], "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 183, "end": 185, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 183, "end": 185, "ctxt": 0 }, "properties": [], "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 166, "end": 189, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 187, "end": 189, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 200, "end": 203, "ctxt": 0 }, "value": "two", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 204, "end": 206, "ctxt": 0 }, "decorators": [], "pat": { "type": "ArrayPattern", "span": { "start": 204, "end": 206, "ctxt": 0 }, "elements": [], "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 208, "end": 227, "ctxt": 0 }, "decorators": [], "pat": { "type": "ArrayPattern", "span": { "start": 208, "end": 227, "ctxt": 0 }, "elements": [ { "type": "Identifier", "span": { "start": 209, "end": 210, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 212, "end": 213, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 215, "end": 216, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 217, "end": 227, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 219, "end": 227, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 219, "end": 225, "ctxt": 0 }, "kind": "number" } } } } } ], "decorators": [], "span": { "start": 191, "end": 231, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 229, "end": 231, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } ], "interpreter": null }