Skip to main content
Version: Next

ValidateResult

Index

Properties

optionalerror

error?: any

If the validation fails, the error or the message will be returned. if has multiple errors, the first error will be used.

optionalerrors

errors?: any[]

The errors to validate.

optionalextra

extra?: any

The extra information to validate.

optionalmessage

message?: string

The message to validate. if has multiple messages, the first message will be used.

optionalmessages

messages?: string[]

The messages to validate.

status

status: boolean

Whether the validation is successful.

optionalvalue

value?: any

If the validation is successful, the value will be returned.