{ "type": "Script", "span": { "start": 0, "end": 118, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 9, "end": 10, "ctxt": 0 }, "value": "f", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 0, "end": 118, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 35, "end": 118, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 41, "end": 50, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 45, "end": 49, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 45, "end": 46, "ctxt": 0 }, "value": "t", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 46, "end": 49, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 48, "end": 49, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 48, "end": 49, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 55, "end": 64, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 59, "end": 63, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 59, "end": 60, "ctxt": 0 }, "value": "k", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 60, "end": 63, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 62, "end": 63, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 62, "end": 63, "ctxt": 0 }, "value": "K", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 69, "end": 116, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 73, "end": 115, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 73, "end": 74, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 77, "end": 115, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Computed", "span": { "start": 87, "end": 90, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 88, "end": 89, "ctxt": 0 }, "value": "t", "optional": false } }, "value": { "type": "NumericLiteral", "span": { "start": 92, "end": 93, "ctxt": 0 }, "value": 0.0 } }, { "type": "KeyValueProperty", "key": { "type": "Computed", "span": { "start": 103, "end": 106, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 104, "end": 105, "ctxt": 0 }, "value": "k", "optional": false } }, "value": { "type": "NumericLiteral", "span": { "start": 108, "end": 109, "ctxt": 0 }, "value": 1.0 } } ] }, "definite": false } ] } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 10, "end": 32, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 11, "end": 12, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 11, "end": 12, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null }, { "type": "TsTypeParameter", "span": { "start": 14, "end": 31, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 14, "end": 15, "ctxt": 0 }, "value": "K", "optional": false }, "constraint": { "type": "TsTypeOperator", "span": { "start": 24, "end": 31, "ctxt": 0 }, "op": "keyof", "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 30, "end": 31, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 30, "end": 31, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "default": null } ] }, "returnType": null } ], "interpreter": null }