import { BuiltInValidator } from './types' /** * More complex type to preserve description and errorMessage in .d.ts file. * Functionally identical to RequiredParam. * For internal use only. */ export const BuiltInValidatorParam = ( validator: Omit, 'optional'> & Pick, 'description' | 'errorMessage'> ): BuiltInValidator & { optional: false } => ({ ...validator, optional: false, })