Open KiaraGrouwstra opened 6 years ago
Known edge-cases to test for:
F<A|B> >= F<A>|F<B>
, distributivity)?... though things like Indeterminate
and its dependents would definitely not satisfy this, nor e.g. IsUnion
... where does this discrepancy stem from? UnionHasKey
?
never
? seemingly all basic operators minus property access are never
-proof. somehow &
also failed, thought that's fixed since TS 2.5?'a'
-> 'a' & string
), the output should also extend that of the original (for A < B
, F<A> < F<B>
)A > B
, F<A> > F<B>
)Object.prototype
-- that is, for objects try having an explicit toString
method, for string input, try toString
.
Types aren't values, and keeping types union-safe is a pretty big deal for broader usability. I should actually start testing for that, and ideally documenting it too.