UNPKG

@elgervb/mock-data

Version:

Mock data made easy, while maintaining type safety

16 lines (15 loc) 423 B
export declare const minGeolocLong = -180; export declare const maxGeolocLong = 180; export declare const minGeolocLat = -90; export declare const maxGeolocLat = 90; /** * The geolocation type (long or lat) */ export declare enum GeoType { long = "long", lat = "lat" } /** * Renerates a random geo location point */ export declare function randomGeolocation(from?: number, to?: number, type?: GeoType): number;