( validate?: InputDefinitionValidateFunction<T>, context?: unknown[], )
| 26 | |
| 27 | |
| 28 | export const validateWithContextFn = <T>( |
| 29 | validate?: InputDefinitionValidateFunction<T>, |
| 30 | context?: unknown[], |
| 31 | ): ValidateFunction<T> | undefined => |
| 32 | validate |
| 33 | ? (input: T): true | string => validate(input, context) |
| 34 | : undefined |
| 35 | |
| 36 | export const defaultWithContextFn = <T extends string | number>( |
| 37 | def?: InputDefinitionDefaultValueOrFn<T>, |
no test coverage detected