gvergnaud/ts-pattern
🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.
TypeScriptMIT
Issues
- 0
Support for own primitive types like UUID or Email
#288 opened by nkoehring - 3
- 1
- 1
Expose `getSelectionKeys` from new `./<internals | helpers | advanced>` package entry-point.
#275 opened by audunolsen - 0
Ability to Dynamically Build Match Cases
#274 opened by rjray - 7
Throw explicit `ExhaustiveError`
#269 opened by adamhamlin - 0
Match + exhaustive doesn't work with readonly array
#271 opened by rikutiira - 1
can't infer types from Pattern generic
#268 opened by sun0day - 1
Example in readme doesn't open
#266 opened by o-az - 3
union type appears not to work with booleans (?)
#267 opened by sebpowell - 2
Matching on union property doesn't narrow the property
#265 opened by LBBO - 1
- 0
P.string.length
#256 opened by JUSTIVE - 5
Object's unions with unions in keys require us to check for patterns that won't exist
#258 opened by nullndr - 8
There are cases where unwanted patterns match.
#228 opened by gitsunmin - 1
Example playground doesn't open
#232 opened by o-az - 2
`Pattern.nonNullable` does not behave as expected
#247 opened by ItaiYosephi - 1
Add type checking to isMatching pattern argument
#188 opened by luisgrases - 2
- 2
Feature: return the value directly
#246 opened by gideaoms - 3
Predicate factory
#217 opened by eloytoro - 4
- 2
Template literal matching support
#227 opened by cyberixae - 0
Defined Pattern
#190 opened by tianjos - 0
`with(P.not([])` with readonly array
#231 opened by JUSTIVE - 1
Support P.object.empty
#230 opened by gitsunmin - 2
- 3
Support point-free style
#209 opened by kabo - 1
.safeExhaustive
#218 opened by jjhiggz - 3
- 1
Enter multiple pipeline for objects type match
#223 opened by dante01yoon - 0
a way to split long match blocks
#215 opened by phaux - 1
Handling of undefined typings in tuples
#213 opened by kevinresol - 1
Seemingly incorrect tuple maching types
#202 opened by rijenkii - 0
Select sub-type for exhaustive check. E.g. `.exhaustive(([state, event]) => event.type)`
#212 opened by audunolsen - 2
Handle readonly arrays in .exhaustive()
#206 opened by philer - 1
Many JSDoc examples are incorrect
#196 opened by chriskuech - 1
Preventing use of `.exhaustive()` for enum checks
#205 opened by tbarusseau - 0
- 4
- 2
- 2
How do I return a string | null from a match
#198 opened by st-clair-clarke - 2
Object with `any` breaks `.with` chaining
#197 opened by gabrielalmeida - 6
- 0
Support Awaited<T>
#195 opened by solidsnakedev - 5
Question: How can I make a pattern for "if array contains a certain element"?
#193 opened by EdmundMai - 1
Set exhaustive not working on type level?
#189 opened by darky - 0
P.when doesn't work with .exhaustive() when type guard input doesn't match
#187 opened by migueloller - 2
- 1
Readme links broken
#184 opened by max-prtsr