( pattern: P, f: Fn )
| 483 | |
| 484 | /** @internal */ |
| 485 | export const not = < |
| 486 | R, |
| 487 | const P extends Types.PatternPrimitive<R> | Types.PatternBase<R>, |
| 488 | Ret, |
| 489 | Fn extends (_: Types.NotMatch<R, P>) => Ret |
| 490 | >( |
| 491 | pattern: P, |
| 492 | f: Fn |
| 493 | ) => |
| 494 | <I, F, A, Pr>( |
| 495 | self: Matcher<I, F, R, A, Pr, Ret> |
| 496 | ): Matcher< |
| 497 | I, |
| 498 | Types.AddOnly<F, Types.WhenMatch<R, P>>, |
| 499 | Types.ApplyFilters<I, Types.AddOnly<F, Types.WhenMatch<R, P>>>, |
| 500 | A | ReturnType<Fn>, |
| 501 | Pr, |
| 502 | Ret |
| 503 | > => (self as any).add(makeNot(makePredicate(pattern), f as any)) |
| 504 | |
| 505 | /** @internal */ |
| 506 | export const nonEmptyString: SafeRefinement<string, never> = |
nothing calls this directly
no test coverage detected