I have a static json file that contains objects that look like this:
"properties": [
{
"name": "MyPrettyProperty",
"dataType": "PropertyLongString",
...
},
{
"name": "MyCoolBoolProp",
"dataType": "PropertyBoolean",
...
}]```
The json is more complex than that, but that's the part I'm interested in.
Is it possible to import this json, and derive from it a type that would look like this:
```ts
{
MyPrettyProperty: string;
MyCoolBoolProp: boolean;
}```
Perhaps it's not possible since importing the json would mean knowing about its contents at runtime?