| isMatching takes pattern and returns a type guard function, cheching if a value matches this pattern.
|
| P.array(subpattern) takes a sub pattern and returns a pattern, which matches
arrays if all their elements match the sub pattern.
|
| P.instanceOf(SomeClass) is a pattern matching instances of a given class.
|
| P.intersection(...patterns) returns a pattern which matches
only if every patterns provided in parameter match the input.
|
| P.not(pattern) returns a pattern which matches if the sub pattern
doesn't match.
|
| P.optional(subpattern) takes a sub pattern and returns a pattern which matches if the
key is undefined or if it is defined and the sub pattern matches its value.
|
| P.select() is a pattern which will always match,
and will inject the selected piece of input in the handler function.
|
| P.typed<SomeType>() is a way to set the input type this
pattern should match on.
|
| P.union(...patterns) returns a pattern which matches
if at least one of the patterns provided in parameter match the input.
|
| |
| P.array(subpattern) takes a sub pattern and returns a pattern, which matches
arrays if all their elements match the sub pattern.
|
| P.instanceOf(SomeClass) is a pattern matching instances of a given class.
|
| P.intersection(...patterns) returns a pattern which matches
only if every patterns provided in parameter match the input.
|
| P.not(pattern) returns a pattern which matches if the sub pattern
doesn't match.
|
| P.optional(subpattern) takes a sub pattern and returns a pattern which matches if the
key is undefined or if it is defined and the sub pattern matches its value.
|
| P.select() is a pattern which will always match,
and will inject the selected piece of input in the handler function.
|
| P.typed<SomeType>() is a way to set the input type this
pattern should match on.
|
| P.union(...patterns) returns a pattern which matches
if at least one of the patterns provided in parameter match the input.
|
| |