The type {}(empty type) is almost a super type which every raw type extends it. My question is why the type {[x:string]:number} extends {}? The following type is always true:
type X = {} extends {[x:string]:number} ? true : false
The type {}(empty type) is almost a super type which every raw type extends it. My question is why the type {[x:string]:number} extends {}? The following type is always true:
type X = {} extends {[x:string]:number} ? true : false