Type inference of Null and Undefined

let b: null = null
b = 1 // 

the same is true for undefined.

is this because the typescript compiler inferred both undefined and null as any types?

Jul.19,2022
False
Menu