Bug fixes
- Update
P.instanceOf
to accept not only classes but also abstract classes. Related issue, 000927c ebeb39b
abstract class A {}
class B extends A {}
class C extends A {}
const object = new B() as B | C;
match(object)
.with(P.instanceOf(A), a => ...) // a: B | C
// ^
// ✅ This type-checks now!
.exhaustive()