DefinitelyTyped/types/utm/index.d.ts
Jonas Triki 29f705fd9b @types/utm - Make northern optional in toLatLon method (#37527)
* Make northern optional in toLatLon

* #37527 - Add overload to toLatLon

* #37527 - Add eofline to index.d.ts

* Update index.d.ts

* Update index.d.ts with newline

* #37527 - Remove double newline
2019-08-22 08:49:20 -07:00

41 lines
869 B
TypeScript

// Type definitions for utm 1.1
// Project: https://github.com/timothygu/utm#readme
// Definitions by: Hyeonsoo David Lee <https://github.com/civilizeddev>
// Jonas Triki <https://github.com/JonasTriki>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function fromLatLon(
latitude: number,
longitude: number,
forceZoneNum?: number,
): {
easting: number;
northing: number;
zoneNum: number;
zoneLetter: string;
};
export function toLatLon(
easting: number,
northing: number,
zoneNum: number,
zoneLetter: string,
northern?: undefined,
strict?: boolean,
): {
latitude: number;
longitude: number;
};
export function toLatLon(
easting: number,
northing: number,
zoneNum: number,
zoneLetter: undefined,
northern: boolean,
strict?: boolean,
): {
latitude: number;
longitude: number;
};