mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 19:04:13 +08:00
fix unit testing
This commit is contained in:
9
types/wellknown/index.d.ts
vendored
9
types/wellknown/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as wellknown from './index';
|
||||
import * as wellknown from 'wellknown';
|
||||
wellknown.parse("POINT(1 2)");
|
||||
const geoJson: {} = {
|
||||
coordinates: [1, 2],
|
||||
|
||||
Reference in New Issue
Block a user