The following code will always produce an error, but as a sketch, this is what I aim to represent:
interface A {
[ key : string ] : string,
"anotherKey" : MyInterface
}
I've checked a few books, TS documentation, tested in ts-node, but I am not that well versed and need some help.
How can I specify an object whose most keys are "key":"value"
but some specific aren't?