(len: len)
| 855 | * .with(P.string.length(10), () => 'strings with length === 10') |
| 856 | */ |
| 857 | const length = <const len extends number>(len: len) => |
| 858 | when((value) => isString(value) && value.length === len); |
| 859 | |
| 860 | /** |
| 861 | * `P.string.maxLength(max)` is a pattern, matching **strings** with at most `max` characters. |
no test coverage detected
searching dependent graphs…