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": "TSNumberKeyword", 14 "loc": { 15 "start": { 16 "line": 17, 17 "column": 8 18 }, 19 "end": { 20 "line": 17, 21 "column": 14 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": 15 59 } 60 } 61 }, 62 { 63 "type": "ExpressionStatement", 64 "expression": { 65 "type": "AssignmentExpression", 66 "operator": "=", 67 "left": { 68 "type": "ArrayPattern", 69 "elements": [ 70 { 71 "type": "Identifier", 72 "name": "a", 73 "decorators": [], 74 "loc": { 75 "start": { 76 "line": 18, 77 "column": 2 78 }, 79 "end": { 80 "line": 18, 81 "column": 3 82 } 83 } 84 } 85 ], 86 "loc": { 87 "start": { 88 "line": 18, 89 "column": 1 90 }, 91 "end": { 92 "line": 18, 93 "column": 4 94 } 95 } 96 }, 97 "right": { 98 "type": "ArrayExpression", 99 "elements": [ 100 { 101 "type": "StringLiteral", 102 "value": "foo", 103 "loc": { 104 "start": { 105 "line": 18, 106 "column": 8 107 }, 108 "end": { 109 "line": 18, 110 "column": 13 111 } 112 } 113 } 114 ], 115 "loc": { 116 "start": { 117 "line": 18, 118 "column": 7 119 }, 120 "end": { 121 "line": 18, 122 "column": 14 123 } 124 } 125 }, 126 "loc": { 127 "start": { 128 "line": 18, 129 "column": 1 130 }, 131 "end": { 132 "line": 18, 133 "column": 14 134 } 135 } 136 }, 137 "loc": { 138 "start": { 139 "line": 18, 140 "column": 1 141 }, 142 "end": { 143 "line": 18, 144 "column": 15 145 } 146 } 147 } 148 ], 149 "loc": { 150 "start": { 151 "line": 1, 152 "column": 1 153 }, 154 "end": { 155 "line": 18, 156 "column": 15 157 } 158 } 159} 160TypeError: Type 'string' is not assignable to type 'number'. [arrayDestructuring33.ts:18:2] 161