Pattern ts-pattern
The type-level representation of a pattern. Used when you need to type a pattern variable or write a helper that accepts patterns.
Usage
Most code doesn't reference Pattern directly — you just inline patterns into .with(…). Reach for it when storing a pattern in a variable or returning one from a helper.
See also
P— pattern primitivesmatch- ts-pattern README
Source: ts-pattern
Re-exported unchanged from ts-pattern at the pinned version.