Closed Magellol closed 1 year ago
Here's my proposed solution to fix the bug highlighted by the test here: https://github.com/unsplash/sum-types-io-ts/pull/15/commits/cc300f3b88c65b005a0109b09ca4b12500c70ec5
Alternatively, we could have a predicate available in sum-types to be able to deal with unknown inputs and we could leverage that here.
sum-types
unknown
Unsplash internal ref: https://crewlabs.slack.com/archives/C0STWEZ2B/p1684158203122269
@samhh Agreed. I've added a few more unsafe inputs 97ce994 for the time being. Open to provide another PR if/when sum-types gets an API we can leverage.
Here's my proposed solution to fix the bug highlighted by the test here: https://github.com/unsplash/sum-types-io-ts/pull/15/commits/cc300f3b88c65b005a0109b09ca4b12500c70ec5
Alternatively, we could have a predicate available in
sum-types
to be able to deal withunknown
inputs and we could leverage that here.Unsplash internal ref: https://crewlabs.slack.com/archives/C0STWEZ2B/p1684158203122269