The following code works perfectly fine in JavaScript but not in TypeScript:
const myMap = new Map([ [ \'x\', { a: 1}], [ \'y\', { b: 2}] ]); console.log(