Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DomainNameValidator

An interface that defines functions for validating domain names.

Hierarchy

  • DomainNameValidator

Implemented by

Index

Properties

supportedTLDs

supportedTLDs: string[]

Gets an array of supported top level domains.

Methods

addSupportedTld

  • Adds a supported tld. You don't need to call this in most cases.

    Parameters

    Returns void

isClaimableTld

  • isClaimableTld(tld: string): boolean
  • Returns true if tld is supported by the OracleRegistrar

    Parameters

    • tld: string

    Returns boolean

isValidWithKnownTld

  • Validates whether the specified domain name is valid and has a known TLD.

    Parameters

    • name: string

    Returns DomainNameValidationResult

removeSupportedTld

  • removeSupportedTld(tld: string): void
  • Removes a supported tld. You don't need to call this in most cases.

    Parameters

    • tld: string

    Returns void

validateDomainName

  • Validates whether the specified domain name is valid.

    Parameters

    • name: string
    • Optional options: undefined | { minLevel: number }

    Returns DomainNameValidationResult

Generated using TypeDoc