Improve some nullable map types

Closes #13326
This commit is contained in:
EvertEt
2022-02-04 09:53:58 +01:00
parent 5cfb634d89
commit 15de4bb5ab
8 changed files with 22 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ class RenderBox extends Disposable {
/**
* @private
* @type {import("../PluggableMap.js").default}
* @type {import("../PluggableMap.js").default|null}
*/
this.map_ = null;
@@ -68,7 +68,7 @@ class RenderBox extends Disposable {
}
/**
* @param {import("../PluggableMap.js").default} map Map.
* @param {import("../PluggableMap.js").default|null} map Map.
*/
setMap(map) {
if (this.map_) {