{ "type": "Script", "span": { "start": 115, "end": 299, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 115, "end": 175, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 125, "end": 126, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 126, "end": 132, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 127, "end": 128, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 127, "end": 128, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null }, { "type": "TsTypeParameter", "span": { "start": 130, "end": 131, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 130, "end": 131, "ctxt": 0 }, "value": "S", "optional": false }, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 133, "end": 175, "ctxt": 0 }, "body": [ { "type": "TsCallSignatureDeclaration", "span": { "start": 140, "end": 172, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 144, "end": 168, "ctxt": 0 }, "value": "f", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 145, "end": 168, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 147, "end": 168, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 148, "end": 152, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 149, "end": 152, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 151, "end": 152, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 151, "end": 152, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 154, "end": 168, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 157, "end": 168, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 158, "end": 162, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 159, "end": 162, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 161, "end": 162, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 161, "end": 162, "ctxt": 0 }, "value": "S", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 164, "end": 168, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 167, "end": 168, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 167, "end": 168, "ctxt": 0 }, "value": "U", "optional": false }, "typeParams": null } } } } } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 169, "end": 172, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 171, "end": 172, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 171, "end": 172, "ctxt": 0 }, "value": "U", "optional": false }, "typeParams": null } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 140, "end": 143, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 141, "end": 142, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 141, "end": 142, "ctxt": 0 }, "value": "U", "optional": false }, "constraint": null, "default": null } ] } } ] } }, { "type": "VariableDeclaration", "span": { "start": 179, "end": 219, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 183, "end": 219, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 183, "end": 184, "ctxt": 0 }, "value": "g", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 184, "end": 219, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 186, "end": 219, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 190, "end": 194, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 191, "end": 194, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 193, "end": 194, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 193, "end": 194, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 186, "end": 189, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 187, "end": 188, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 187, "end": 188, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 196, "end": 219, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 199, "end": 219, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 203, "end": 207, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 204, "end": 207, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 206, "end": 207, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 206, "end": 207, "ctxt": 0 }, "value": "S", "optional": false }, "typeParams": null } } } ], "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 199, "end": 202, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 200, "end": 201, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 200, "end": 201, "ctxt": 0 }, "value": "S", "optional": false }, "constraint": null, "default": null } ] }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 209, "end": 219, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 212, "end": 219, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 212, "end": 213, "ctxt": 0 }, "value": "I", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 213, "end": 219, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 214, "end": 215, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 214, "end": 215, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null }, { "type": "TsTypeReference", "span": { "start": 217, "end": 218, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 217, "end": 218, "ctxt": 0 }, "value": "S", "optional": false }, "typeParams": null } ] } } } } } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 221, "end": 290, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 225, "end": 290, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 225, "end": 226, "ctxt": 0 }, "value": "h", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 226, "end": 290, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 228, "end": 290, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 232, "end": 236, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 233, "end": 236, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 235, "end": 236, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 235, "end": 236, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 228, "end": 231, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 229, "end": 230, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 229, "end": 230, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 238, "end": 290, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 241, "end": 290, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 245, "end": 249, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 246, "end": 249, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 248, "end": 249, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 248, "end": 249, "ctxt": 0 }, "value": "S", "optional": false }, "typeParams": null } } } ], "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 241, "end": 244, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 242, "end": 243, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 242, "end": 243, "ctxt": 0 }, "value": "S", "optional": false }, "constraint": null, "default": null } ] }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 251, "end": 290, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 254, "end": 290, "ctxt": 0 }, "members": [ { "type": "TsCallSignatureDeclaration", "span": { "start": 256, "end": 288, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 260, "end": 284, "ctxt": 0 }, "value": "f", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 261, "end": 284, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 263, "end": 284, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 264, "end": 268, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 265, "end": 268, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 267, "end": 268, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 267, "end": 268, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 270, "end": 284, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 273, "end": 284, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 274, "end": 278, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 275, "end": 278, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 277, "end": 278, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 277, "end": 278, "ctxt": 0 }, "value": "S", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 280, "end": 284, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 283, "end": 284, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 283, "end": 284, "ctxt": 0 }, "value": "U", "optional": false }, "typeParams": null } } } } } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 285, "end": 288, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 287, "end": 288, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 287, "end": 288, "ctxt": 0 }, "value": "U", "optional": false }, "typeParams": null } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 256, "end": 259, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 257, "end": 258, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 257, "end": 258, "ctxt": 0 }, "value": "U", "optional": false }, "constraint": null, "default": null } ] } } ] } } } } } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 294, "end": 299, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 294, "end": 299, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 294, "end": 295, "ctxt": 0 }, "value": "g", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 298, "end": 299, "ctxt": 0 }, "value": "h", "optional": false } } } ], "interpreter": null }