From 17a0bcf62fdec25b3b36e9c1931e0caada5e770d Mon Sep 17 00:00:00 2001 From: Oscar Lorentzon Date: Fri, 11 Mar 2016 08:43:07 +0100 Subject: [PATCH] Make latlon geohash type definitions non ambient. Add decode function to defintions. --- typings.json | 2 +- .../latlon-geohash/latlon-geohash.d.ts | 25 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/typings.json b/typings.json index 431a55ee..5d37b9d7 100644 --- a/typings.json +++ b/typings.json @@ -5,7 +5,6 @@ }, "ambientDependencies": { "graphlib": "file:typings/created/graphlib/graphlib.d.ts", - "latlon-geohash": "file:typings/created/latlon-geohash/latlon-geohash.d.ts", "lib": "file:typings/created/lib/lib.d.ts", "node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#aed176536a202b9a2475ce1989ea6d2d0226a185", "rbush": "file:typings/created/rbush/rbush.d.ts", @@ -17,6 +16,7 @@ "when": "github:DefinitelyTyped/DefinitelyTyped/when/when.d.ts#001ca36ba58cef903c4c063555afb07bbc36bb58" }, "dependencies": { + "latlon-geohash": "file:typings/created/latlon-geohash/latlon-geohash.d.ts", "unitbezier": "file:./typings/created/unitbezier/unitbezier.d.ts" } } diff --git a/typings/created/latlon-geohash/latlon-geohash.d.ts b/typings/created/latlon-geohash/latlon-geohash.d.ts index 6bf4b382..f25f2e8f 100644 --- a/typings/created/latlon-geohash/latlon-geohash.d.ts +++ b/typings/created/latlon-geohash/latlon-geohash.d.ts @@ -1,15 +1,14 @@ -declare module "latlon-geohash" { - export interface ILatLon { - lat: number; - lon: number; - } +export interface ILatLon { + lat: number; + lon: number; +} - export interface IBounds { - sw: ILatLon; - ne: ILatLon; - } +export interface IBounds { + sw: ILatLon; + ne: ILatLon; +} - export function neighbours(hash: string): {[key: string]: string}; - export function encode(lat: number, lon: number, precision: number): string; - export function bounds(hash: string): IBounds; -} \ No newline at end of file +export function neighbours(hash: string): {[key: string]: string}; +export function encode(lat: number, lon: number, precision: number): string; +export function decode(hash: string): ILatLon; +export function bounds(hash: string): IBounds;