Given:
class A<T extends {
[k: string]: any
}> {
private model: T
constructor(model: T = {}) {
this.model = model
}
}
Why do i got an error stating
Type '{}' is not assignable to type 'T'.
Doesn't {} is assignable to
{ [k: string]: any }
Thank you.