- Preparing search index...
- The search index is not available
@metanames/sdk
Interface IValidatorInterface<T>
Accessors
rules
- get rules(): object
-
Returns object
Methods
getErrors
- getErrors(): string[]
-
Returns string[]
hasErrors
- hasErrors(): boolean
-
Returns boolean
normalize
- normalize(value, options?): T
-
Parameters
-
value: T
-
Optional
options: Record<string, unknown>
Returns T
validate
- validate(value, options?): boolean
-
Returns boolean