default: {
CheckIP: ((address?) => Promise<undefined | CheckIPResponse>);
IPInfo: ((address, max_retries?) => Promise<undefined | PrefixInfo>);
}
Type declaration
CheckIP: ((address?) => Promise<undefined | CheckIPResponse>)
- (address?): Promise<undefined | CheckIPResponse>
Returns Promise<undefined | CheckIPResponse>
IPInfo: ((address, max_retries?) => Promise<undefined | PrefixInfo>)
- (address, max_retries?): Promise<undefined | PrefixInfo>
Parameters
- address: string
- max_retries: number = 3
Returns Promise<undefined | PrefixInfo>
Looks up information regarding the IP address supplied; OR, if no address is supplied, looks up information regarding our client's IP address