Add ': void' to non returning functions (error TS7014)

This commit is contained in:
Niklas Alt
2018-12-06 19:57:45 +01:00
parent e4e0e61731
commit 4bc9216e41
24 changed files with 34 additions and 34 deletions

View File

@@ -133,7 +133,7 @@ class DragBox extends PointerInteraction {
/**
* Function to execute just before `onboxend` is fired
* @type {function(this:DragBox, import("../MapBrowserEvent.js").default)}
* @type {function(this:DragBox, import("../MapBrowserEvent.js").default): void}
* @private
*/
this.onBoxEnd_ = options.onBoxEnd ? options.onBoxEnd : VOID;

View File

@@ -274,7 +274,7 @@ class Modify extends PointerInteraction {
/**
* @const
* @private
* @type {!Object<string, function(Feature, import("../geom/Geometry.js").default)>}
* @type {!Object<string, function(Feature, import("../geom/Geometry.js").default): void>}
*/
this.SEGMENT_WRITERS_ = {
'Point': this.writePointGeometry_,

View File

@@ -181,7 +181,7 @@ class Snap extends PointerInteraction {
/**
* @const
* @private
* @type {Object<string, function(import("../Feature.js").default, import("../geom/Geometry.js").default)>}
* @type {Object<string, function(import("../Feature.js").default, import("../geom/Geometry.js").default): void>}
*/
this.SEGMENT_WRITERS_ = {
'Point': this.writePointGeometry_,