Improve Collection type-safety

This commit is contained in:
Maximilian Krög
2022-07-30 02:32:54 +02:00
parent 6e4e49644d
commit 75c17e55b1
9 changed files with 77 additions and 77 deletions
+1
View File
@@ -50,6 +50,7 @@ export {default as ZoomToExtent} from './control/ZoomToExtent.js';
export function defaults(opt_options) {
const options = opt_options ? opt_options : {};
/** @type {Collection<import("./control/Control.js").default>} */
const controls = new Collection();
const zoomControl = options.zoom !== undefined ? options.zoom : true;