-
-
Couldn't load subscription status.
- Fork 158
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I'm having issues handling specific errors cases. For example:
const err = new Error() // Imagine this could be an AxiosError
match(err)
.with(P.instanceOf(AxiosError).and({ response: { status: 404 } }), () => ...)
...This would result in an error on response since the chaining only resolves the Error type and response doesn't exist.
Describe the solution you'd like
For the chaining to work when narrowing(/widening ?) with P.instanceOf
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request