While I'm not completely satisfied with the title of this question, I struggled to come up with something better at the moment.
I have a feeling that what I am looking for may not be supported, but I am willing to be proven wrong!
Currently, I am working with an API where the member names in the object returned can vary based on the query.
For example:
GetInfo(languages?:string[]);
GetInfo() => { name: "Cologne" };
GetInfo(["en", "de"]) => { name: "Cologne", name_en: "Cologne", name_de: "Köln" };
My question is, is there a method to create a definition that will automatically generate the name_{language} members?