{ "type": "Program", "statements": [ { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 7 } } }, "typeAnnotation": { "type": "TSSymbolKeyword", "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 16 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 17 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "ns", "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 13 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 18 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 27 } } }, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 21, "column": 2 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 21, "column": 2 } } } ], "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 21, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 23, "column": 10 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "k1", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 24, "column": 10 }, "end": { "line": 24, "column": 16 } } }, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 8 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 24, "column": 19 }, "end": { "line": 24, "column": 26 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 24, "column": 27 } } }, { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "k2", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 25, "column": 10 }, "end": { "line": 25, "column": 16 } } }, "loc": { "start": { "line": 25, "column": 6 }, "end": { "line": 25, "column": 8 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 25, "column": 19 }, "end": { "line": 25, "column": 26 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 27 } } }, { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "k3", "typeAnnotation": { "type": "TSSymbolKeyword", "loc": { "start": { "line": 26, "column": 10 }, "end": { "line": 26, "column": 16 } } }, "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 8 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 26, "column": 19 }, "end": { "line": 26, "column": 26 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 27 } } }, { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "k4", "typeAnnotation": { "type": "TSTemplateLiteralType", "references": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 35 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "templateLiteral-", "cooked": "templateLiteral-" }, "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 27 } } }, { "type": "TemplateElement", "value": { "raw": "", "cooked": "" }, "loc": { "start": { "line": 27, "column": 36 }, "end": { "line": 27, "column": 36 } } } ], "loc": { "start": { "line": 27, "column": 10 }, "end": { "line": 27, "column": 37 } } }, "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 8 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 27, "column": 40 }, "end": { "line": 27, "column": 47 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 48 } } } ], "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 28, "column": 2 } } }, "id": { "type": "Identifier", "name": "I1", "loc": { "start": { "line": 23, "column": 11 }, "end": { "line": 23, "column": 13 } } }, "extends": [], "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 28, "column": 2 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "k1", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSNumberKeyword", "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 16 } } }, { "type": "TSTypeReference", "typeName": { "type": "TSQualifiedName", "left": { "type": "Identifier", "name": "ns", "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 21 } } }, "right": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 31, "column": 22 }, "end": { "line": 31, "column": 23 } } }, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 25 } } }, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 25 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 31, "column": 26 }, "end": { "line": 31, "column": 27 } } }, "loc": { "start": { "line": 31, "column": 26 }, "end": { "line": 31, "column": 27 } } } ], "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 27 } } }, "loc": { "start": { "line": 31, "column": 6 }, "end": { "line": 31, "column": 8 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 31, "column": 30 }, "end": { "line": 31, "column": 37 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 38 } } } ], "loc": { "start": { "line": 30, "column": 14 }, "end": { "line": 32, "column": 2 } } }, "id": { "type": "Identifier", "name": "I2", "loc": { "start": { "line": 30, "column": 11 }, "end": { "line": 30, "column": 13 } } }, "extends": [], "loc": { "start": { "line": 30, "column": 1 }, "end": { "line": 32, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 34, "column": 7 }, "end": { "line": 34, "column": 8 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "annotations": [], "loc": { "start": { "line": 34, "column": 1 }, "end": { "line": 36, "column": 2 } } }, "body": [], "indexSignatures": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "k1", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 16 } } }, { "type": "TSNumberKeyword", "loc": { "start": { "line": 35, "column": 19 }, "end": { "line": 35, "column": 25 } } }, { "type": "TSSymbolKeyword", "loc": { "start": { "line": 35, "column": 28 }, "end": { "line": 35, "column": 34 } } }, { "type": "TSTemplateLiteralType", "references": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 35, "column": 56 }, "end": { "line": 35, "column": 62 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "templateLiteral-", "cooked": "templateLiteral-" }, "loc": { "start": { "line": 35, "column": 38 }, "end": { "line": 35, "column": 54 } } }, { "type": "TemplateElement", "value": { "raw": "", "cooked": "" }, "loc": { "start": { "line": 35, "column": 63 }, "end": { "line": 35, "column": 63 } } } ], "loc": { "start": { "line": 35, "column": 37 }, "end": { "line": 35, "column": 64 } } } ], "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 64 } } }, "loc": { "start": { "line": 35, "column": 6 }, "end": { "line": 35, "column": 8 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 35, "column": 67 }, "end": { "line": 35, "column": 74 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 74 } } } ], "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 36, "column": 2 } } }, "decorators": [], "isAnnotationDeclaration": false, "loc": { "start": { "line": 34, "column": 1 }, "end": { "line": 36, "column": 2 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "typeAnnotation": { "type": "TSTypeLiteral", "members": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "k", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 38, "column": 16 }, "end": { "line": 38, "column": 22 } } }, { "type": "TSNumberKeyword", "loc": { "start": { "line": 38, "column": 25 }, "end": { "line": 38, "column": 31 } } }, { "type": "TSSymbolKeyword", "loc": { "start": { "line": 38, "column": 34 }, "end": { "line": 38, "column": 40 } } }, { "type": "TSTemplateLiteralType", "references": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 38, "column": 62 }, "end": { "line": 38, "column": 68 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "templateLiteral-", "cooked": "templateLiteral-" }, "loc": { "start": { "line": 38, "column": 44 }, "end": { "line": 38, "column": 60 } } }, { "type": "TemplateElement", "value": { "raw": "", "cooked": "" }, "loc": { "start": { "line": 38, "column": 69 }, "end": { "line": 38, "column": 69 } } } ], "loc": { "start": { "line": 38, "column": 43 }, "end": { "line": 38, "column": 70 } } } ], "loc": { "start": { "line": 38, "column": 16 }, "end": { "line": 38, "column": 70 } } }, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 14 } } }, "typeAnnotation": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 38, "column": 73 }, "end": { "line": 38, "column": 80 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 38, "column": 12 }, "end": { "line": 38, "column": 82 } } } ], "loc": { "start": { "line": 38, "column": 10 }, "end": { "line": 38, "column": 82 } } }, "loc": { "start": { "line": 38, "column": 7 }, "end": { "line": 38, "column": 8 } } }, "init": { "type": "ObjectExpression", "properties": [], "loc": { "start": { "line": 38, "column": 85 }, "end": { "line": 38, "column": 87 } } }, "loc": { "start": { "line": 38, "column": 7 }, "end": { "line": 38, "column": 87 } } } ], "kind": "const", "loc": { "start": { "line": 38, "column": 1 }, "end": { "line": 38, "column": 88 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 39, "column": 1 } } }