1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "FunctionDeclaration", 6 "function": { 7 "type": "ScriptFunction", 8 "id": { 9 "type": "Identifier", 10 "name": "foo", 11 "decorators": [], 12 "loc": { 13 "start": { 14 "line": 17, 15 "column": 10 16 }, 17 "end": { 18 "line": 17, 19 "column": 13 20 } 21 } 22 }, 23 "generator": false, 24 "async": false, 25 "expression": false, 26 "params": [], 27 "returnType": { 28 "type": "TSBooleanKeyword", 29 "loc": { 30 "start": { 31 "line": 17, 32 "column": 17 33 }, 34 "end": { 35 "line": 17, 36 "column": 24 37 } 38 } 39 }, 40 "body": { 41 "type": "BlockStatement", 42 "statements": [ 43 { 44 "type": "ReturnStatement", 45 "argument": { 46 "type": "NumberLiteral", 47 "value": 5, 48 "loc": { 49 "start": { 50 "line": 18, 51 "column": 8 52 }, 53 "end": { 54 "line": 18, 55 "column": 9 56 } 57 } 58 }, 59 "loc": { 60 "start": { 61 "line": 18, 62 "column": 1 63 }, 64 "end": { 65 "line": 18, 66 "column": 10 67 } 68 } 69 } 70 ], 71 "loc": { 72 "start": { 73 "line": 17, 74 "column": 25 75 }, 76 "end": { 77 "line": 19, 78 "column": 2 79 } 80 } 81 }, 82 "loc": { 83 "start": { 84 "line": 17, 85 "column": 1 86 }, 87 "end": { 88 "line": 19, 89 "column": 2 90 } 91 } 92 }, 93 "loc": { 94 "start": { 95 "line": 17, 96 "column": 1 97 }, 98 "end": { 99 "line": 19, 100 "column": 2 101 } 102 } 103 } 104 ], 105 "loc": { 106 "start": { 107 "line": 1, 108 "column": 1 109 }, 110 "end": { 111 "line": 20, 112 "column": 1 113 } 114 } 115} 116TypeError: Type 'number' is not assignable to type 'boolean'. [function_declaration_10.ts:18:1] 117