fix unit testing

This commit is contained in:
YairTawil
2017-06-26 14:32:00 +03:00
parent 5f7c3a99b6
commit 1331945eea
2 changed files with 3 additions and 8 deletions

View File

@@ -3,10 +3,5 @@
// Definitions by: Yair Tawil <https://github.com/yairtawil>
// 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;

View File

@@ -1,4 +1,4 @@
import * as wellknown from './index';
import * as wellknown from 'wellknown';
wellknown.parse("POINT(1 2)");
const geoJson: {} = {
coordinates: [1, 2],