Closed ItaiYosephi closed 4 months ago
That's indeed a bug. I'll take a closer look when I get some time. In the meantime using P.not(P.nullish)
instead of P.nonNullable
is the alternative I'd recommend if you run into this issue
Fixed in 5.1.2!
Describe the bug
Pattern.nonNullable
behave the samePattern.not(Pattern.nullish)
Code Sandbox with a minimal reproduction case https://codesandbox.io/p/sandbox/thirsty-frog-9965h3?file=%2Fsrc%2Findex.ts%3A20%2C14
provided this code
I get this ts error
Versions