DefinitelyTyped/types/utm/index.d.ts
Hyeonsoo David Lee 62b83bada6 [utm] Add new definitions for utm (#34216)
* [utm] Add new definitions for utm

* add 'strictFunctionTypes' in tsconfig.json

* What the...
2019-03-29 20:17:55 -07:00

28 lines
627 B
TypeScript

// Type definitions for utm 1.1
// Project: https://github.com/timothygu/utm#readme
// Definitions by: Hyeonsoo David Lee <https://github.com/civilizeddev>
// 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: boolean,
strict?: boolean,
): {
latitude: number
longitude: number
};