{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "key", "typeAnnotation": { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 18 } } }, { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 28 } } }, { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 31 }, "end": { "line": 18, "column": 37 } } } ], "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 37 } } }, "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 38 } } } ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 38 } } }, "loc": { "start": { "line": 18, "column": 11 }, "end": { "line": 18, "column": 39 } } }, "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 9 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 18, "column": 42 }, "end": { "line": 18, "column": 49 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 19, "column": 4 } } } ], "loc": { "start": { "line": 17, "column": 14 }, "end": { "line": 19, "column": 4 } } }, "id": { "type": "Identifier", "name": "I1", "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 13 } } }, "extends": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 4 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "key", "typeAnnotation": { "type": "TSConditionalType", "checkType": { "type": "TSIntersectionType", "types": [ { "type": "TSBooleanKeyword", "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 22, "column": 18 } } }, { "type": "TSNumberKeyword", "loc": { "start": { "line": 22, "column": 21 }, "end": { "line": 22, "column": 27 } } } ], "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 22, "column": 27 } } }, "extendsType": { "type": "TSStringKeyword", "loc": { "start": { "line": 22, "column": 36 }, "end": { "line": 22, "column": 42 } } }, "trueType": { "type": "TSNumberKeyword", "loc": { "start": { "line": 22, "column": 45 }, "end": { "line": 22, "column": 51 } } }, "falseType": { "type": "TSSymbolKeyword", "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 60 } } }, "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 22, "column": 60 } } }, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 9 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 22, "column": 63 }, "end": { "line": 22, "column": 70 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 23, "column": 4 } } } ], "loc": { "start": { "line": 21, "column": 16 }, "end": { "line": 23, "column": 4 } } }, "id": { "type": "Identifier", "name": "I2", "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 15 } } }, "extends": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 23, "column": 4 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 9 } } }, "typeAnnotation": { "type": "TSTypeLiteral", "members": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 15 } } }, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 25, "column": 17 }, "end": { "line": 25, "column": 23 } } }, "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 25 } } } ], "loc": { "start": { "line": 25, "column": 12 }, "end": { "line": 25, "column": 25 } } }, "loc": { "start": { "line": 25, "column": 3 }, "end": { "line": 27, "column": 12 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "key", "typeAnnotation": { "type": "TSIndexedAccessType", "objectType": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 28, "column": 11 }, "end": { "line": 28, "column": 12 } } }, "loc": { "start": { "line": 28, "column": 11 }, "end": { "line": 28, "column": 13 } } }, "indexType": { "type": "TSLiteralType", "literal": { "type": "StringLiteral", "value": "a", "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 16 } } }, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 16 } } }, "loc": { "start": { "line": 28, "column": 11 }, "end": { "line": 28, "column": 18 } } }, "loc": { "start": { "line": 28, "column": 6 }, "end": { "line": 28, "column": 9 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 27 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 29, "column": 4 } } } ], "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 29, "column": 4 } } }, "id": { "type": "Identifier", "name": "I3", "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 15 } } }, "extends": [], "loc": { "start": { "line": 27, "column": 3 }, "end": { "line": 29, "column": 4 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "key", "typeAnnotation": { "type": "TSIntersectionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 32, "column": 11 }, "end": { "line": 32, "column": 17 } } }, { "type": "TSStringKeyword", "loc": { "start": { "line": 32, "column": 20 }, "end": { "line": 32, "column": 26 } } } ], "loc": { "start": { "line": 32, "column": 11 }, "end": { "line": 32, "column": 26 } } }, "loc": { "start": { "line": 32, "column": 6 }, "end": { "line": 32, "column": 9 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 32, "column": 29 }, "end": { "line": 32, "column": 36 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 32, "column": 5 }, "end": { "line": 33, "column": 4 } } } ], "loc": { "start": { "line": 31, "column": 16 }, "end": { "line": 33, "column": 4 } } }, "id": { "type": "Identifier", "name": "I4", "loc": { "start": { "line": 31, "column": 13 }, "end": { "line": 31, "column": 15 } } }, "extends": [], "loc": { "start": { "line": 31, "column": 3 }, "end": { "line": 33, "column": 4 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "key", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 36, "column": 11 }, "end": { "line": 36, "column": 17 } } }, { "type": "TSIntersectionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 36, "column": 22 }, "end": { "line": 36, "column": 28 } } } ], "loc": { "start": { "line": 36, "column": 20 }, "end": { "line": 36, "column": 28 } } } ], "loc": { "start": { "line": 36, "column": 11 }, "end": { "line": 36, "column": 28 } } }, "loc": { "start": { "line": 36, "column": 6 }, "end": { "line": 36, "column": 9 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 36, "column": 31 }, "end": { "line": 36, "column": 38 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 36, "column": 5 }, "end": { "line": 37, "column": 4 } } } ], "loc": { "start": { "line": 35, "column": 16 }, "end": { "line": 37, "column": 4 } } }, "id": { "type": "Identifier", "name": "I5", "loc": { "start": { "line": 35, "column": 13 }, "end": { "line": 35, "column": 15 } } }, "extends": [], "loc": { "start": { "line": 35, "column": 3 }, "end": { "line": 37, "column": 4 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 38, "column": 1 } } }