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

@@ -43,6 +43,9 @@ class LayerRenderer extends Observable {
* @return {boolean} The tile range is fully loaded. * @return {boolean} The tile range is fully loaded.
*/ */
function(zoom, tileRange) { function(zoom, tileRange) {
/**
* @param {import("../Tile.js").default} tile Tile.
*/
function callback(tile) { function callback(tile) {
if (!tiles[zoom]) { if (!tiles[zoom]) {
tiles[zoom] = {}; tiles[zoom] = {};

View File

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