interface a {
d: {[key: string]: string}
}
class a {
d = {}
}
returns the following error :
Subsequent property declarations must have the same type. Property 'd' must be of type '{ [key: string]: string; }', but here has type '{}'.
let v: {[key: string]: string} = {}
is accepted without warning/error
What I am missing ?