(max: max)
| 867 | * .with(P.string.maxLength(10), () => 'string with more length <= 10') |
| 868 | */ |
| 869 | const maxLength = <const max extends number>(max: max) => |
| 870 | when((value) => isString(value) && value.length <= max); |
| 871 | |
| 872 | /** |
| 873 | * `P.string.includes(substr)` is a pattern, matching **strings** containing `substr`. |
no test coverage detected
searching dependent graphs…