@maxmind/geoip2-node
Version:
Node.js API for GeoIP2 webservice client and database reader
14 lines (13 loc) • 588 B
TypeScript
import * as records from '../records';
import { CountryResponse } from '../types';
export default class Country {
readonly continent?: records.ContinentRecord;
readonly country?: records.CountryRecord;
readonly maxmind?: records.MaxMindRecord;
readonly registeredCountry?: records.RegisteredCountryRecord;
readonly representedCountry?: records.RepresentedCountryRecord;
readonly traits: records.TraitsRecord;
constructor(response: CountryResponse, ipAddress?: string, network?: string);
private setBooleanTraits;
private setBooleanRegisteredCountry;
}