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],