gvergnaud / ts-pattern

🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Defined Pattern

tianjos opened this issue · comments

Is your feature request related to a problem? Please describe.
Seems this pattern P.not(P.nullish) is used a lot

Describe the solution you'd like
An alias like P.defined that wrapper P.not(P.nullish)