mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 17:35:49 +08:00
23 lines
641 B
TypeScript
23 lines
641 B
TypeScript
// Type definitions for GeoIP-lite 1.1.6
|
|
// Project: https://github.com/bluesmoon/node-geoip
|
|
// Definitions by: Yuce Tekol <http://yuce.me/>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
declare module 'geoip-lite' {
|
|
module mod {
|
|
export interface Lookup {
|
|
range: Array<number>; // range start, end
|
|
country: string;
|
|
region: string;
|
|
city: string;
|
|
ll: Array<number>; // latitude, longitude
|
|
}
|
|
|
|
export function lookup(ip: string): Lookup;
|
|
export function pretty(ip: number): string;
|
|
export function startWatchingDataUpdate(): void;
|
|
export function stopWatchingDataUpdate(): void;
|
|
}
|
|
export = mod;
|
|
}
|