{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSTypeLiteral", "members": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 11 } } }, "typeAnnotation": { "type": "TSTypeLiteral", "members": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 16 } } }, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 24 } } }, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 25 } } }, { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 17, "column": 26 }, "end": { "line": 17, "column": 27 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 29 }, "end": { "line": 17, "column": 35 } } }, "loc": { "start": { "line": 17, "column": 26 }, "end": { "line": 17, "column": 37 } } } ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 37 } } }, "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 39 } } } ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 39 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "init": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 45 } } }, "value": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 17, "column": 47 }, "end": { "line": 17, "column": 48 } } }, "kind": "init", "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 48 } } } ], "loc": { "start": { "line": 17, "column": 42 }, "end": { "line": 17, "column": 50 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 50 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 51 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 17, "column": 51 } } } TypeError: Type 'number' is not assignable to type '{ a: number; b: string; }'. [objectLiteralAssignability9.ts:17:44]