Variable default

default: {
    CheckIP: ((address?) => Promise<undefined | CheckIPResponse>);
    IPInfo: ((address, max_retries?) => Promise<undefined | PrefixInfo>);
}

Type declaration

  • CheckIP: ((address?) => Promise<undefined | CheckIPResponse>)
      • (address?): Promise<undefined | CheckIPResponse>
      • Looks up information regarding the IP address supplied; OR, if no address is supplied, looks up information regarding our client's IP address

        Parameters

        • Optional address: string

        Returns Promise<undefined | CheckIPResponse>

  • IPInfo: ((address, max_retries?) => Promise<undefined | PrefixInfo>)
      • (address, max_retries?): Promise<undefined | PrefixInfo>
      • Looks up information regarding the IP address supplied

        Parameters

        • address: string
        • max_retries: number = 3

        Returns Promise<undefined | PrefixInfo>