Improve some null types for strictNullChecks

This commit is contained in:
EvertEt
2022-02-06 19:35:41 +01:00
parent 459cd51ae2
commit 25e1d6c5d6
17 changed files with 37 additions and 37 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ class Interaction extends BaseObject {
/**
* @private
* @type {import("../PluggableMap.js").default}
* @type {import("../PluggableMap.js").default|null}
*/
this.map_ = null;
@@ -85,7 +85,7 @@ class Interaction extends BaseObject {
/**
* Get the map associated with this interaction.
* @return {import("../PluggableMap.js").default} Map.
* @return {import("../PluggableMap.js").default|null} Map.
* @api
*/
getMap() {
@@ -116,7 +116,7 @@ class Interaction extends BaseObject {
* Remove the interaction from its current map and attach it to the new map.
* Subclasses may set up event handlers to get notified about changes to
* the map here.
* @param {import("../PluggableMap.js").default} map Map.
* @param {import("../PluggableMap.js").default|null} map Map.
*/
setMap(map) {
this.map_ = map;
+1 -1
View File
@@ -334,7 +334,7 @@ class Select extends Interaction {
/**
* Remove the interaction from its current map, if any, and attach it to a new
* map, if any. Pass `null` to just remove the interaction from the current map.
* @param {import("../PluggableMap.js").default} map Map.
* @param {import("../PluggableMap.js").default|null} map Map.
* @api
*/
setMap(map) {