Can A strictly assign to B.
A
B
All branches in an union A are assignable to B.
use Assignable<A, B, { distributive: false }> instead
Assignable<A, B, { distributive: false }>
StrictCanAssign<number | string, number> // falseStrictCanAssign<number | string, number | string> // true Copy
StrictCanAssign<number | string, number> // falseStrictCanAssign<number | string, number | string> // true
Can
A
strictly assign toB
.All branches in an union
A
are assignable toB
.