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

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;