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).
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) orV
(representing an error).