( def?: InputDefinitionDefaultValueOrFn<T>, context?: unknown[], )
| 34 | : undefined |
| 35 | |
| 36 | export const defaultWithContextFn = <T extends string | number>( |
| 37 | def?: InputDefinitionDefaultValueOrFn<T>, |
| 38 | context?: unknown[], |
| 39 | ): DefaultValueOrFn<T> | undefined => |
| 40 | typeof def === 'function' ? () => def(context) : def |
| 41 | |
| 42 | export type StringDefOptions = Omit<OptionalStringInputOptions, 'default' | 'validate'> & { |
| 43 | default?: InputDefinitionDefaultValueOrFn<string> |
no outgoing calls
no test coverage detected