mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
Fixed reference to openlayers
Fixed tests
This commit is contained in:
2
types/jsts/index.d.ts
vendored
2
types/jsts/index.d.ts
vendored
@@ -3,6 +3,8 @@
|
||||
// Definitions by: Stephane Alie <https://github.com/StephaneAlie>, Jorge Rocha Gualtieri <https://github.com/jrocha>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="openlayers" />
|
||||
|
||||
declare namespace jsts {
|
||||
export var version: string;
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ var ls: jsts.geom.LineString = new jsts.geom.LineString([c]);
|
||||
var p: jsts.geom.Point = new jsts.geom.Point(c);
|
||||
var poly: jsts.geom.Polygon = new jsts.geom.Polygon(lr);
|
||||
var precisionModel = new jsts.geom.PrecisionModel();
|
||||
var factory = new jsts.geom.GeometryFactory(this.precisionModel);
|
||||
var wktWriter = new jsts.io.WKTWriter(this.factory);
|
||||
var factory = new jsts.geom.GeometryFactory(precisionModel);
|
||||
var wktWriter = new jsts.io.WKTWriter(factory);
|
||||
|
||||
str = jsts.version;
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
|
||||
Reference in New Issue
Block a user