{ "type": "Program", "statements": [ { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "Keys", "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 10 } } }, "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSLiteralType", "literal": { "type": "StringLiteral", "value": "a", "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 16 } } }, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 16 } } }, { "type": "TSLiteralType", "literal": { "type": "StringLiteral", "value": "b", "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 22 } } }, "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 22 } } }, { "type": "TSLiteralType", "literal": { "type": "StringLiteral", "value": "c", "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 28 } } }, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 28 } } }, { "type": "TSLiteralType", "literal": { "type": "StringLiteral", "value": "d", "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 17, "column": 34 } } }, "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 17, "column": 34 } } } ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 34 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 35 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "p", "loc": { "start": { "line": 19, "column": 7 }, "end": { "line": 19, "column": 8 } } }, "init": { "type": "TSSatisfiesExpression", "expression": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 6 } } }, "value": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 9 } } }, "kind": "init", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 9 } } }, { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 6 } } }, "value": { "type": "StringLiteral", "value": "hello", "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 15 } } }, "kind": "init", "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 15 } } }, { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "x", "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 6 } } }, "value": { "type": "NumberLiteral", "value": 8, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 9 } } }, "kind": "init", "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 9 } } } ], "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 23, "column": 2 } } }, "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Partial", "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 20 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Record", "loc": { "start": { "line": 23, "column": 21 }, "end": { "line": 23, "column": 27 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Keys", "loc": { "start": { "line": 23, "column": 28 }, "end": { "line": 23, "column": 32 } } }, "loc": { "start": { "line": 23, "column": 28 }, "end": { "line": 23, "column": 32 } } }, { "type": "TSUnknownKeyword", "loc": { "start": { "line": 23, "column": 34 }, "end": { "line": 23, "column": 41 } } } ], "loc": { "start": { "line": 23, "column": 27 }, "end": { "line": 23, "column": 43 } } }, "loc": { "start": { "line": 23, "column": 21 }, "end": { "line": 23, "column": 27 } } } ], "loc": { "start": { "line": 23, "column": 20 }, "end": { "line": 23, "column": 43 } } }, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 20 } } }, "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 23, "column": 44 } } }, "loc": { "start": { "line": 19, "column": 7 }, "end": { "line": 23, "column": 44 } } } ], "kind": "const", "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 23, "column": 44 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "p", "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 10 } } }, "property": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 25, "column": 11 }, "end": { "line": 25, "column": 12 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 12 } } }, "property": { "type": "Identifier", "name": "toFixed", "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 20 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 20 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 22 } } }, "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 22 } } } ], "kind": "let", "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 25, "column": 23 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "p", "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 10 } } }, "property": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 12 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 12 } } }, "property": { "type": "Identifier", "name": "substring", "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 22 } } }, "arguments": [ { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 26, "column": 23 }, "end": { "line": 26, "column": 24 } } } ], "optional": false, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 25 } } }, "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 26, "column": 1 }, "end": { "line": 26, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "d", "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 6 } } }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "p", "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 10 } } }, "property": { "type": "Identifier", "name": "d", "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 12 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 12 } } }, "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 12 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 1 }, "end": { "line": 27, "column": 13 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 27, "column": 13 } } }