When strictNullChecks
is turned on:
(u: undefined, v: void, n: null) => {
v = u;
u = v; // type error: Type 'void' is not assignable to type 'undefined'
v = n; // type error: Type 'null' is not assignable to type 'void'
}
I'm curious about whether there exist values of type void
that are not also of type undefined
, especially with strictNullChecks
enabled. Are there any instances where this statement holds true?