Merge pull request #9039 from OSHistory/tsFunctionReturnVoid

Add ': void' to non returning functions (error TS7014)
This commit is contained in:
Andreas Hocevar
2018-12-07 07:58:40 +01:00
committed by GitHub
24 changed files with 34 additions and 34 deletions

View File

@@ -18,7 +18,7 @@ const SIMPLIFY_TOLERANCE = 0.5;
* @const
* @type {Object<import("../geom/GeometryType.js").default,
* function(import("../render/canvas/BuilderGroup.js").default, import("../geom/Geometry.js").default,
* import("../style/Style.js").default, Object)>}
* import("../style/Style.js").default, Object): void>}
*/
const GEOMETRY_RENDERERS = {
'Point': renderPointGeometry,
@@ -91,7 +91,7 @@ function renderCircleGeometry(builderGroup, geometry, style, feature) {
* @param {import("../Feature.js").FeatureLike} feature Feature.
* @param {import("../style/Style.js").default} style Style.
* @param {number} squaredTolerance Squared tolerance.
* @param {function(this: T, import("../events/Event.js").default)} listener Listener function.
* @param {function(this: T, import("../events/Event.js").default): void} listener Listener function.
* @param {T} thisArg Value to use as `this` when executing `listener`.
* @return {boolean} `true` if style is loading.
* @template T