ts-pattern icon indicating copy to clipboard operation
ts-pattern copied to clipboard

Export additional useful types

Open trevorsmith opened this issue 4 months ago • 0 comments

I'd like access to more internal ts-pattern types to:

  • Create wrapper functions around match (e.g. from a class method)
  • Type generics passed into match / when / etc.
  • Explicitly type matches inside other types, like interfaces
  • etc.

I've included exports all of the potential user-facing types I could find – did I miss any?

trevorsmith avatar Oct 04 '24 14:10 trevorsmith