1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "a", 12 "decorators": [], 13 "loc": { 14 "start": { 15 "line": 17, 16 "column": 5 17 }, 18 "end": { 19 "line": 17, 20 "column": 6 21 } 22 } 23 }, 24 "init": { 25 "type": "TSAsExpression", 26 "expression": { 27 "type": "StringLiteral", 28 "value": "foo", 29 "loc": { 30 "start": { 31 "line": 17, 32 "column": 9 33 }, 34 "end": { 35 "line": 17, 36 "column": 14 37 } 38 } 39 }, 40 "typeAnnotation": { 41 "type": "TSNumberKeyword", 42 "loc": { 43 "start": { 44 "line": 17, 45 "column": 18 46 }, 47 "end": { 48 "line": 17, 49 "column": 24 50 } 51 } 52 }, 53 "loc": { 54 "start": { 55 "line": 17, 56 "column": 9 57 }, 58 "end": { 59 "line": 17, 60 "column": 25 61 } 62 } 63 }, 64 "loc": { 65 "start": { 66 "line": 17, 67 "column": 5 68 }, 69 "end": { 70 "line": 17, 71 "column": 25 72 } 73 } 74 } 75 ], 76 "kind": "var", 77 "loc": { 78 "start": { 79 "line": 17, 80 "column": 1 81 }, 82 "end": { 83 "line": 17, 84 "column": 25 85 } 86 } 87 } 88 ], 89 "loc": { 90 "start": { 91 "line": 1, 92 "column": 1 93 }, 94 "end": { 95 "line": 18, 96 "column": 1 97 } 98 } 99} 100TypeError: Conversion of type 'string' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. [as_expression_1.ts:17:9] 101