Type alias ModelValidationResult<T, V>

ModelValidationResult<T, V>: [T] extends [Record<string, any>] ? V | null | undefined | { [ K in keyof T]?: null | V | ModelValidationResult<T[K]> } : V | null | undefined

Constructs a validation type for the model type T, where the validation type is a deep-partial model type where each key maps to null/undefined (representing valid state) or V (representing an error).

Type Parameters

  • T

  • V = string

Generated using TypeDoc