mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [utm] Add new definitions for utm * add 'strictFunctionTypes' in tsconfig.json * What the...
28 lines
627 B
TypeScript
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
|
|
};
|