mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #17463 from yairtawil/master
add types for 'wellknown'
This commit is contained in:
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// Type definitions for wellknown 0.5
|
||||
// Project: https://github.com/mapbox/wellknown#readme
|
||||
// Definitions by: Yair Tawil <https://github.com/yairtawil>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function parse(input: string): {};
|
||||
export function stringify(gj: {}): string;
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"wellknown-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -0,0 +1,7 @@
|
||||
import * as wellknown from 'wellknown';
|
||||
wellknown.parse("POINT(1 2)");
|
||||
const geoJson: {} = {
|
||||
coordinates: [1, 2],
|
||||
type: "Point"
|
||||
};
|
||||
wellknown.stringify(geoJson);
|
||||
Reference in New Issue
Block a user