Preparing search index...
The search index is not available
@metanames/sdk
@metanames/sdk
DomainValidator
Class DomainValidator
Hierarchy
BaseValidator
DomainValidator
Implements
IValidatorInterface
<
string
>
Index
Constructors
constructor
Properties
#errors
tld
Accessors
rules
Methods
add
Error
clear
Errors
get
Errors
has
Errors
normalize
raise
Errors
remove
Tld
validate
validation
Constructors
constructor
new
Domain
Validator
(
tld
)
:
DomainValidator
Parameters
tld
:
string
|
string
[]
Returns
DomainValidator
Properties
Private
#errors
#errors
:
string
[]
= []
tld
tld
:
string
[]
Accessors
rules
get
rules
(
)
:
{
maxLength
:
number
;
minLength
:
number
;
}
Returns
{
maxLength
:
number
;
minLength
:
number
;
}
max
Length
:
number
min
Length
:
number
Methods
Protected
add
Error
add
Error
(
error
)
:
void
Parameters
error
:
string
Returns
void
Protected
clear
Errors
clear
Errors
(
)
:
void
Returns
void
get
Errors
get
Errors
(
)
:
string
[]
Returns
string
[]
has
Errors
has
Errors
(
)
:
boolean
Returns
boolean
normalize
normalize
(
name
,
options
?
)
:
string
Parameters
name
:
string
options
:
INormalizeOptions
= {}
Returns
string
Protected
raise
Errors
raise
Errors
(
)
:
void
Returns
void
Private
remove
Tld
remove
Tld
(
name
)
:
string
Parameters
name
:
string
Returns
string
validate
validate
(
record
,
options
?
)
:
boolean
Parameters
record
:
unknown
Optional
options
:
IValidatorOptions
Returns
boolean
validation
validation
(
name
,
options
?
)
:
boolean
Parameters
name
:
string
options
:
IValidatorOptions
= ...
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#errors
tld
rules
add
Error
clear
Errors
get
Errors
has
Errors
normalize
raise
Errors
remove
Tld
validate
validation
@metanames/sdk
Enviroment
Meta
Names
Avl
Trees
Record
Class
Custom
Enum
Record
Class
Enum
Config
Provider
Contract
Repository
Domain
Domain
Repository
Domain
Validator
Meta
Names
Contract
Repository
Meta
Names
Sdk
Record
Repository
Avl
Tree
Avl
Tree
Item
BYOC
Byoc
Coin
Config
Config
Overrides
Contract
Contract
Entry
Contract
Params
Get
State
Params
IAction
Approve
Mint
Fees
IAction
Domain
Mint
IAction
Domain
Mint
Payload
IAction
Domain
Renewal
IAction
Domain
Transfer
IAction
Domain
Transfer
Payload
IAction
Record
Delete
IAction
Record
Mint
IAction
Record
Update
IAction
Renew
Domain
Payload
IArg
Mint
IContract
Repository
IDomain
IDomain
Analyzed
IDomain
Partial
IMeta
Names
Contract
Repository
IRecord
IStruct
Mint
ITransaction
Intent
ITransaction
Result
IValidator
Interface
IValidator
Options
Meta
Mask
Sdk
Metamask
Request
Arguments
Transaction
Params
Address
BYOCSymbol
Contract
Data
Gas
Cost
Meta
Names
State
Raw
Contract
Data
Records
Signing
Class
Type
Signing
Strategy
Type
VERSION
get
Record
Validator
Generated using
TypeDoc