Use void for optional return type

This commit is contained in:
Kevin Schmidt
2018-10-03 13:23:05 -06:00
parent 144c2f9f15
commit 8d9fe7f688
2 changed files with 4 additions and 1 deletions

View File

@@ -112,7 +112,7 @@ class TileSource extends Source {
* @param {import("../proj/Projection.js").default} projection Projection.
* @param {number} z Zoom level.
* @param {import("../TileRange.js").default} tileRange Tile range.
* @param {function(import("../Tile.js").default):(boolean|undefined)} callback Called with each
* @param {function(import("../Tile.js").default):(boolean|void)} callback Called with each
* loaded tile. If the callback returns `false`, the tile will not be
* considered loaded.
* @return {boolean} The tile range is fully covered with loaded tiles.