From caf9d3ce04ddbb598c482d4d785e1c4e3b279d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Nils=20Kuklau?= Date: Mon, 14 Aug 2017 20:43:39 +0200 Subject: [PATCH] [openlayers] fix declaration for forEachSegment (#18816) The declaration appears to be wrong (though I'm fairly new to TypeScript). For instance, the example at https://openlayers.org/en/latest/examples/line-arrows.html won't work like that. --- types/openlayers/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/openlayers/index.d.ts b/types/openlayers/index.d.ts index 79820b98ac..3e151ac32c 100644 --- a/types/openlayers/index.d.ts +++ b/types/openlayers/index.d.ts @@ -3970,7 +3970,7 @@ declare module ol { * @template T,S * @api */ - forEachSegment(callback: (() => T), opt_this?: S): (T | boolean); + forEachSegment(callback: ((this: S, start: ol.Coordinate, end: ol.Coordinate) => T), opt_this?: S): (T | boolean); /** * Returns the coordinate at `m` using linear interpolation, or `null` if no