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 "typeAnnotation": { 13 "type": "TSAnyKeyword", 14 "loc": { 15 "start": { 16 "line": 17, 17 "column": 8 18 }, 19 "end": { 20 "line": 17, 21 "column": 11 22 } 23 } 24 }, 25 "decorators": [], 26 "loc": { 27 "start": { 28 "line": 17, 29 "column": 5 30 }, 31 "end": { 32 "line": 17, 33 "column": 6 34 } 35 } 36 }, 37 "init": null, 38 "loc": { 39 "start": { 40 "line": 17, 41 "column": 5 42 }, 43 "end": { 44 "line": 17, 45 "column": 6 46 } 47 } 48 } 49 ], 50 "kind": "var", 51 "loc": { 52 "start": { 53 "line": 17, 54 "column": 1 55 }, 56 "end": { 57 "line": 17, 58 "column": 12 59 } 60 } 61 }, 62 { 63 "type": "ExpressionStatement", 64 "expression": { 65 "type": "TSAsExpression", 66 "expression": { 67 "type": "Identifier", 68 "name": "a", 69 "decorators": [], 70 "loc": { 71 "start": { 72 "line": 18, 73 "column": 1 74 }, 75 "end": { 76 "line": 18, 77 "column": 2 78 } 79 } 80 }, 81 "typeAnnotation": { 82 "type": "TSTypeReference", 83 "typeName": { 84 "type": "Identifier", 85 "name": "const", 86 "decorators": [], 87 "loc": { 88 "start": { 89 "line": 18, 90 "column": 6 91 }, 92 "end": { 93 "line": 18, 94 "column": 11 95 } 96 } 97 }, 98 "loc": { 99 "start": { 100 "line": 18, 101 "column": 6 102 }, 103 "end": { 104 "line": 18, 105 "column": 11 106 } 107 } 108 }, 109 "loc": { 110 "start": { 111 "line": 18, 112 "column": 1 113 }, 114 "end": { 115 "line": 18, 116 "column": 12 117 } 118 } 119 }, 120 "loc": { 121 "start": { 122 "line": 18, 123 "column": 1 124 }, 125 "end": { 126 "line": 18, 127 "column": 12 128 } 129 } 130 } 131 ], 132 "loc": { 133 "start": { 134 "line": 1, 135 "column": 1 136 }, 137 "end": { 138 "line": 19, 139 "column": 1 140 } 141 } 142} 143TypeError: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals. [as_expression_2.ts:18:1] 144