Use void for optional return type
This commit is contained in:
@@ -43,6 +43,9 @@ class LayerRenderer extends Observable {
|
||||
* @return {boolean} The tile range is fully loaded.
|
||||
*/
|
||||
function(zoom, tileRange) {
|
||||
/**
|
||||
* @param {import("../Tile.js").default} tile Tile.
|
||||
*/
|
||||
function callback(tile) {
|
||||
if (!tiles[zoom]) {
|
||||
tiles[zoom] = {};
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user