Consider the following:
class A<T extends {
[k: string]: any
}> {
private model: T
constructor(model: T = {}) {
this.model = model
}
}
Why am I receiving an error message that states
Type '{}' is not assignable to type 'T'.
Isn't {} assignable to
{ [k: string]: any }
Appreciate your help.