I am trying create a typescript class MyClass with instance properties set dynamically in the constructor:
const myInstance = new MyClass(({
someField: 'foo'
}))
myInstance.someField // typescript should show this as type string
How can I use typescript to create MyClass to show someField as a string property of myInstance?
Can I use generics? Is it at all possible?