import type { GetAllObjectPaths, CanBeBlank } from '@under-control/core'; import type { ValidationError } from '../types'; export const error = ( message: string, details: O | null = null, path: CanBeBlank> = undefined, ): ValidationError => ({ path, details, messages: [ { message, }, ], });