{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSPropertySignature", "computed": false, "optional": true, "readonly": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 15 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 16 } } }, { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 14 } } }, { "type": "TSBooleanKeyword", "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 24 } } } ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 24 } } }, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 25 } } }, { "type": "TSMethodSignature", "computed": false, "optional": false, "key": { "type": "Identifier", "name": "c", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 6 } } }, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSFunctionType", "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 20 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 12 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSVoidKeyword", "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 29 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 23 } } } ], "returnType": { "type": "TSStringKeyword", "loc": { "start": { "line": 20, "column": 34 }, "end": { "line": 20, "column": 40 } } }, "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 40 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 8 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "TSNumberKeyword", "loc": { "start": { "line": 20, "column": 46 }, "end": { "line": 20, "column": 52 } } }, "loc": { "start": { "line": 20, "column": 46 }, "end": { "line": 20, "column": 54 } } }, "optional": true, "decorators": [], "loc": { "start": { "line": 20, "column": 42 }, "end": { "line": 20, "column": 43 } } } ], "typeAnnotation": { "type": "TSUndefinedKeyword", "loc": { "start": { "line": 20, "column": 57 }, "end": { "line": 20, "column": 66 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 67 } } }, { "type": "TSCallSignatureDeclaration", "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 7 } } } ], "returnType": { "type": "TSStringKeyword", "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 21, "column": 24 } } }, "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 25 } } }, { "type": "TSCallSignatureDeclaration", "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 7 } } } ], "returnType": { "type": "TSNumberKeyword", "loc": { "start": { "line": 22, "column": 18 }, "end": { "line": 22, "column": 24 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 25 } } }, { "type": "TSConstructSignatureDeclaration", "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNullKeyword", "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 16 } } }, "decorators": [], "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 10 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 23, "column": 22 }, "end": { "line": 23, "column": 28 } } }, "optional": true, "decorators": [], "loc": { "start": { "line": 23, "column": 18 }, "end": { "line": 23, "column": 19 } } } ], "returnType": { "type": "TSTypeLiteral", "members": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 23, "column": 33 }, "end": { "line": 23, "column": 34 } } }, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 23, "column": 36 }, "end": { "line": 23, "column": 42 } } }, "loc": { "start": { "line": 23, "column": 33 }, "end": { "line": 23, "column": 43 } } }, { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 23, "column": 44 }, "end": { "line": 23, "column": 45 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 23, "column": 47 }, "end": { "line": 23, "column": 53 } } }, "loc": { "start": { "line": 23, "column": 44 }, "end": { "line": 23, "column": 54 } } }, { "type": "TSMethodSignature", "computed": false, "optional": true, "key": { "type": "Identifier", "name": "c", "decorators": [], "loc": { "start": { "line": 23, "column": 55 }, "end": { "line": 23, "column": 56 } } }, "params": [ { "type": "ArrayPattern", "elements": [ { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 23, "column": 59 }, "end": { "line": 23, "column": 60 } } }, { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 23, "column": 62 }, "end": { "line": 23, "column": 63 } } } ], "loc": { "start": { "line": 23, "column": 58 }, "end": { "line": 23, "column": 64 } } } ], "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 73 } } }, "loc": { "start": { "line": 23, "column": 55 }, "end": { "line": 23, "column": 75 } } } ], "loc": { "start": { "line": 23, "column": 31 }, "end": { "line": 23, "column": 75 } } }, "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 24, "column": 2 } } } ], "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 24, "column": 2 } } }, "id": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 14 } } }, "extends": [ { "type": "TSInterfaceHeritage", "expression": { "type": "TSTypeReference", "typeName": { "type": "TSQualifiedName", "left": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 24 } } }, "right": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 26 } } }, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 28 } } }, "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 17, "column": 24 } } }, "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 17, "column": 24 } } } ], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 24, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 24, "column": 2 } } }