From 1331945eeac8aa15757ec697b8fa91f8f2e224af Mon Sep 17 00:00:00 2001 From: YairTawil Date: Mon, 26 Jun 2017 14:32:00 +0300 Subject: [PATCH] fix unit testing --- types/wellknown/index.d.ts | 9 ++------- types/wellknown/wellknown-tests.ts | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/types/wellknown/index.d.ts b/types/wellknown/index.d.ts index a79f3236bf..41a751c2d1 100644 --- a/types/wellknown/index.d.ts +++ b/types/wellknown/index.d.ts @@ -3,10 +3,5 @@ // Definitions by: Yair Tawil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = wellknown; - -declare namespace wellknown { - function parse(input: string): object; - function stringify(gj: {}): string; -} - +export declare function parse(input: string): {}; +export declare function stringify(gj: {}): string; diff --git a/types/wellknown/wellknown-tests.ts b/types/wellknown/wellknown-tests.ts index 7106927b88..0f1bcd656e 100644 --- a/types/wellknown/wellknown-tests.ts +++ b/types/wellknown/wellknown-tests.ts @@ -1,4 +1,4 @@ -import * as wellknown from './index'; +import * as wellknown from 'wellknown'; wellknown.parse("POINT(1 2)"); const geoJson: {} = { coordinates: [1, 2],