unsplash / sum-types

Safe, ergonomic, non-generic sum types in TypeScript.
https://unsplash.github.io/sum-types/
MIT License
42 stars 2 forks source link

Add matchW #19

Closed samhh closed 3 years ago

samhh commented 3 years ago

Closes #11. Edit: and also closes #14.

samhh commented 3 years ago

Ah, now, if we want to test failure we'll need to use a separate tsconfig/etc so we don't get type errors, right? (I'm reimplementing all that you discovered in web one step at a type time :star2:)

OliverJAsh commented 3 years ago

Ah, now, if we want to test failure we'll need to use a separate tsconfig/etc so we don't get type errors, right?

Yeah, the "type tests" will need to live in a separate TS project and we won't really ever run it through tsc—we'll just run eslint instead, to run the tests.