Overview
The `ValidationErrors` object
Last updated
The `ValidationErrors` object
Last updated
ValidationErrors {}
The ValidationErrors
is an extension of the CommonErrors
object that represents multiple identification numbers under which the errors of the ValidationError
type are prepared to throw.
public get(): ValidationError<ErrorId> | undefined
Returns the ValidationError
instance of the given unique identification id
if set, otherwise undefined
.
public getErrors(): { [Key in Id]: ValidationError<Key> | undefined }
Returns an object
of set type errors, where the key is a unique identification.