|
33 | 33 | "typeAnnotation": { |
34 | 34 | "type": "TSMappedType", |
35 | 35 | "start":32,"end":72,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":3,"column":1,"index":72}}, |
36 | | - "typeParameter": { |
37 | | - "type": "TSTypeParameter", |
38 | | - "start":37,"end":49,"loc":{"start":{"line":2,"column":3,"index":37},"end":{"line":2,"column":15,"index":49}}, |
39 | | - "name": { |
40 | | - "type": "Identifier", |
41 | | - "start":37,"end":38,"loc":{"start":{"line":2,"column":3,"index":37},"end":{"line":2,"column":4,"index":38},"identifierName":"K"}, |
42 | | - "name": "K" |
43 | | - }, |
44 | | - "constraint": { |
45 | | - "type": "TSTypeOperator", |
46 | | - "start":42,"end":49,"loc":{"start":{"line":2,"column":8,"index":42},"end":{"line":2,"column":15,"index":49}}, |
47 | | - "operator": "keyof", |
48 | | - "typeAnnotation": { |
49 | | - "type": "TSTypeReference", |
50 | | - "start":48,"end":49,"loc":{"start":{"line":2,"column":14,"index":48},"end":{"line":2,"column":15,"index":49}}, |
51 | | - "typeName": { |
52 | | - "type": "Identifier", |
53 | | - "start":48,"end":49,"loc":{"start":{"line":2,"column":14,"index":48},"end":{"line":2,"column":15,"index":49},"identifierName":"T"}, |
54 | | - "name": "T" |
55 | | - } |
| 36 | + "key": { |
| 37 | + "type": "Identifier", |
| 38 | + "start":37,"end":38,"loc":{"start":{"line":2,"column":3,"index":37},"end":{"line":2,"column":4,"index":38},"identifierName":"K"}, |
| 39 | + "name": "K" |
| 40 | + }, |
| 41 | + "constraint": { |
| 42 | + "type": "TSTypeOperator", |
| 43 | + "start":42,"end":49,"loc":{"start":{"line":2,"column":8,"index":42},"end":{"line":2,"column":15,"index":49}}, |
| 44 | + "operator": "keyof", |
| 45 | + "typeAnnotation": { |
| 46 | + "type": "TSTypeReference", |
| 47 | + "start":48,"end":49,"loc":{"start":{"line":2,"column":14,"index":48},"end":{"line":2,"column":15,"index":49}}, |
| 48 | + "typeName": { |
| 49 | + "type": "Identifier", |
| 50 | + "start":48,"end":49,"loc":{"start":{"line":2,"column":14,"index":48},"end":{"line":2,"column":15,"index":49},"identifierName":"T"}, |
| 51 | + "name": "T" |
56 | 52 | } |
57 | 53 | } |
58 | 54 | }, |
|
115 | 111 | "typeAnnotation": { |
116 | 112 | "type": "TSMappedType", |
117 | 113 | "start":101,"end":149,"loc":{"start":{"line":5,"column":26,"index":101},"end":{"line":7,"column":1,"index":149}}, |
118 | | - "typeParameter": { |
119 | | - "type": "TSTypeParameter", |
120 | | - "start":106,"end":118,"loc":{"start":{"line":6,"column":3,"index":106},"end":{"line":6,"column":15,"index":118}}, |
121 | | - "name": { |
122 | | - "type": "Identifier", |
123 | | - "start":106,"end":107,"loc":{"start":{"line":6,"column":3,"index":106},"end":{"line":6,"column":4,"index":107},"identifierName":"K"}, |
124 | | - "name": "K" |
125 | | - }, |
126 | | - "constraint": { |
127 | | - "type": "TSTypeOperator", |
128 | | - "start":111,"end":118,"loc":{"start":{"line":6,"column":8,"index":111},"end":{"line":6,"column":15,"index":118}}, |
129 | | - "operator": "keyof", |
130 | | - "typeAnnotation": { |
131 | | - "type": "TSTypeReference", |
132 | | - "start":117,"end":118,"loc":{"start":{"line":6,"column":14,"index":117},"end":{"line":6,"column":15,"index":118}}, |
133 | | - "typeName": { |
134 | | - "type": "Identifier", |
135 | | - "start":117,"end":118,"loc":{"start":{"line":6,"column":14,"index":117},"end":{"line":6,"column":15,"index":118},"identifierName":"T"}, |
136 | | - "name": "T" |
137 | | - } |
| 114 | + "key": { |
| 115 | + "type": "Identifier", |
| 116 | + "start":106,"end":107,"loc":{"start":{"line":6,"column":3,"index":106},"end":{"line":6,"column":4,"index":107},"identifierName":"K"}, |
| 117 | + "name": "K" |
| 118 | + }, |
| 119 | + "constraint": { |
| 120 | + "type": "TSTypeOperator", |
| 121 | + "start":111,"end":118,"loc":{"start":{"line":6,"column":8,"index":111},"end":{"line":6,"column":15,"index":118}}, |
| 122 | + "operator": "keyof", |
| 123 | + "typeAnnotation": { |
| 124 | + "type": "TSTypeReference", |
| 125 | + "start":117,"end":118,"loc":{"start":{"line":6,"column":14,"index":117},"end":{"line":6,"column":15,"index":118}}, |
| 126 | + "typeName": { |
| 127 | + "type": "Identifier", |
| 128 | + "start":117,"end":118,"loc":{"start":{"line":6,"column":14,"index":117},"end":{"line":6,"column":15,"index":118},"identifierName":"T"}, |
| 129 | + "name": "T" |
138 | 130 | } |
139 | 131 | } |
140 | 132 | }, |
|
234 | 226 | "typeAnnotation": { |
235 | 227 | "type": "TSMappedType", |
236 | 228 | "start":181,"end":237,"loc":{"start":{"line":9,"column":29,"index":181},"end":{"line":11,"column":1,"index":237}}, |
237 | | - "typeParameter": { |
238 | | - "type": "TSTypeParameter", |
239 | | - "start":186,"end":198,"loc":{"start":{"line":10,"column":3,"index":186},"end":{"line":10,"column":15,"index":198}}, |
240 | | - "name": { |
241 | | - "type": "Identifier", |
242 | | - "start":186,"end":187,"loc":{"start":{"line":10,"column":3,"index":186},"end":{"line":10,"column":4,"index":187},"identifierName":"K"}, |
243 | | - "name": "K" |
244 | | - }, |
245 | | - "constraint": { |
246 | | - "type": "TSTypeOperator", |
247 | | - "start":191,"end":198,"loc":{"start":{"line":10,"column":8,"index":191},"end":{"line":10,"column":15,"index":198}}, |
248 | | - "operator": "keyof", |
249 | | - "typeAnnotation": { |
250 | | - "type": "TSTypeReference", |
251 | | - "start":197,"end":198,"loc":{"start":{"line":10,"column":14,"index":197},"end":{"line":10,"column":15,"index":198}}, |
252 | | - "typeName": { |
253 | | - "type": "Identifier", |
254 | | - "start":197,"end":198,"loc":{"start":{"line":10,"column":14,"index":197},"end":{"line":10,"column":15,"index":198},"identifierName":"T"}, |
255 | | - "name": "T" |
256 | | - } |
| 229 | + "key": { |
| 230 | + "type": "Identifier", |
| 231 | + "start":186,"end":187,"loc":{"start":{"line":10,"column":3,"index":186},"end":{"line":10,"column":4,"index":187},"identifierName":"K"}, |
| 232 | + "name": "K" |
| 233 | + }, |
| 234 | + "constraint": { |
| 235 | + "type": "TSTypeOperator", |
| 236 | + "start":191,"end":198,"loc":{"start":{"line":10,"column":8,"index":191},"end":{"line":10,"column":15,"index":198}}, |
| 237 | + "operator": "keyof", |
| 238 | + "typeAnnotation": { |
| 239 | + "type": "TSTypeReference", |
| 240 | + "start":197,"end":198,"loc":{"start":{"line":10,"column":14,"index":197},"end":{"line":10,"column":15,"index":198}}, |
| 241 | + "typeName": { |
| 242 | + "type": "Identifier", |
| 243 | + "start":197,"end":198,"loc":{"start":{"line":10,"column":14,"index":197},"end":{"line":10,"column":15,"index":198},"identifierName":"T"}, |
| 244 | + "name": "T" |
257 | 245 | } |
258 | 246 | } |
259 | 247 | }, |
|
0 commit comments