In TypeScript I can delcare a map like this:
{[key:number]string}
As an example of a map whose keys are numbers and values string. But I can also do it like this:
Map<number, string>
Why do we have two ways to do the same and what is the difference among them?