In my TypeScript code, I have a field definition that is structured like this:
languages: Array<{}> = [{ key: "fr", name: "français" }];
However, when the TypeScript file is compiled into JavaScript, the output ends up looking like this:
this.languages = [{ key: "fr", name: "franais" }];
I'm wondering why the transpiler is changing the literals in this way and what steps can be taken to prevent this from happening?