Mark properties as nullable
This commit is contained in:
@@ -98,7 +98,7 @@ class Geolocation extends BaseObject {
|
||||
/**
|
||||
* The unprojected (EPSG:4326) device position.
|
||||
* @private
|
||||
* @type {import("./coordinate.js").Coordinate}
|
||||
* @type {?import("./coordinate.js").Coordinate}
|
||||
*/
|
||||
this.position_ = null;
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class ImageWrapper extends ImageBase {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {function():void}
|
||||
* @type {?function():void}
|
||||
*/
|
||||
this.unlisten_ = null;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class ImageTile extends Tile {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {function():void}
|
||||
* @type {?function():void}
|
||||
*/
|
||||
this.unlisten_ = null;
|
||||
|
||||
|
||||
@@ -31,13 +31,13 @@ class MapBrowserEvent extends MapEvent {
|
||||
|
||||
/**
|
||||
* The map pixel relative to the viewport corresponding to the original browser event.
|
||||
* @type {import("./pixel.js").Pixel}
|
||||
* @type {?import("./pixel.js").Pixel}
|
||||
*/
|
||||
this.pixel_ = null;
|
||||
|
||||
/**
|
||||
* The coordinate in the user projection corresponding to the original browser event.
|
||||
* @type {import("./coordinate.js").Coordinate}
|
||||
* @type {?import("./coordinate.js").Coordinate}
|
||||
*/
|
||||
this.coordinate_ = null;
|
||||
|
||||
|
||||
@@ -232,7 +232,7 @@ class PluggableMap extends BaseObject {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array<import("./events.js").EventsKey>}
|
||||
* @type {?Array<import("./events.js").EventsKey>}
|
||||
*/
|
||||
this.layerGroupPropertyListenerKeys_ = null;
|
||||
|
||||
@@ -292,7 +292,7 @@ class PluggableMap extends BaseObject {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array<import("./events.js").EventsKey>}
|
||||
* @type {?Array<import("./events.js").EventsKey>}
|
||||
*/
|
||||
this.keyHandlerKeys_ = null;
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ class MousePosition extends Control {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {import("../proj/Projection.js").default}
|
||||
* @type {?import("../proj/Projection.js").default}
|
||||
*/
|
||||
this.mapProjection_ = null;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class ZoomToExtent extends Control {
|
||||
});
|
||||
|
||||
/**
|
||||
* @type {import("../extent.js").Extent}
|
||||
* @type {?import("../extent.js").Extent}
|
||||
* @protected
|
||||
*/
|
||||
this.extent = options.extent ? options.extent : null;
|
||||
|
||||
@@ -73,7 +73,7 @@ class TopoJSON extends JSONFeature {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array<string>}
|
||||
* @type {?Array<string>}
|
||||
*/
|
||||
this.layers_ = options.layers ? options.layers : null;
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ class DragAndDrop extends Interaction {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array<import("../events.js").EventsKey>}
|
||||
* @type {?Array<import("../events.js").EventsKey>}
|
||||
*/
|
||||
this.dropListenKeys_ = null;
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class ReprojTile extends Tile {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array<import("../events.js").EventsKey>}
|
||||
* @type {?Array<import("../events.js").EventsKey>}
|
||||
*/
|
||||
this.sourcesListenerKeys_ = null;
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ class IconImage extends EventTarget {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {function():void}
|
||||
* @type {?function():void}
|
||||
*/
|
||||
this.unlisten_ = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user