Experimental
A Matcher is an object with match function, which defines how this object should be matched by TS-Pattern.
Matcher
match
Note that this api is unstable.
class Some<T> implements P.unstable_Matchable { [P.matcher](): P.unstable_Matcher<Some<T>>} Copy
class Some<T> implements P.unstable_Matchable { [P.matcher](): P.unstable_Matcher<Some<T>>}
A
Matcher
is an object withmatch
function, which defines how this object should be matched by TS-Pattern.Note that this api is unstable.