mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[openlayers] DrawGeometryFunctionType: second argument is optional (#16678)
This commit is contained in:
committed by
Andy
parent
9e53c56b13
commit
4bb4158c7f
Vendored
+1
-1
@@ -11154,7 +11154,7 @@ declare module ol {
|
||||
* Array.<Array.<ol.Coordinate>>), ol.geom.SimpleGeometry=):
|
||||
* ol.geom.SimpleGeometry}
|
||||
*/
|
||||
type DrawGeometryFunctionType = (coords: (ol.Coordinate | ol.Coordinate[] | ol.Coordinate[][]), geo: ol.geom.SimpleGeometry) => ol.geom.SimpleGeometry;
|
||||
type DrawGeometryFunctionType = (coords: (ol.Coordinate | ol.Coordinate[] | ol.Coordinate[][]), geo?: ol.geom.SimpleGeometry) => ol.geom.SimpleGeometry;
|
||||
|
||||
/**
|
||||
* A function that takes an {@link ol.MapBrowserEvent} and returns a
|
||||
|
||||
@@ -19,6 +19,8 @@ let featureStyleFunction: ol.FeatureStyleFunction;
|
||||
let featureLoader: ol.FeatureLoader;
|
||||
let easingFunction: (t: number) => number;
|
||||
let drawGeometryFunction: ol.DrawGeometryFunctionType;
|
||||
drawGeometryFunction([0,0], new ol.geom.Point([0,0]));
|
||||
drawGeometryFunction([0,0]);
|
||||
|
||||
// Type variables for OpenLayers
|
||||
let attribution: ol.Attribution;
|
||||
|
||||
Reference in New Issue
Block a user