( end: end )
| 829 | * .with(P.string.endsWith('!'), () => 'value ends with an !') |
| 830 | */ |
| 831 | const endsWith = <input, const end extends string>( |
| 832 | end: end |
| 833 | ): GuardP<input, `${string}${end}`> => |
| 834 | when((value) => isString(value) && value.endsWith(end)); |
| 835 | |
| 836 | /** |
| 837 | * `P.string.minLength(min)` is a pattern, matching **strings** with at least `min` characters. |
no test coverage detected
searching dependent graphs…