Once I've imported a JSON file into my Typescript application, I utilize an interface to enable code completion in my IDE for the JSON data:
interface Component {
name:string
}
This method works perfectly fine, however, I encountered a problem when dealing with a property named en-US
within the JSON. Since the dash is not allowed in an interface, I'm unsure how to resolve this issue?
{
"name" : "boink",
"en-US" : "hello there"
}