mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
[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.
This commit is contained in:
committed by
Mohamed Hegazy
parent
f2115de4b0
commit
caf9d3ce04
2
types/openlayers/index.d.ts
vendored
2
types/openlayers/index.d.ts
vendored
@@ -3970,7 +3970,7 @@ declare module ol {
|
||||
* @template T,S
|
||||
* @api
|
||||
*/
|
||||
forEachSegment<T, S>(callback: (() => T), opt_this?: S): (T | boolean);
|
||||
forEachSegment<T, S>(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
|
||||
|
||||
Reference in New Issue
Block a user