Mark properties as nullable

This commit is contained in:
Frederic Junod
2019-09-27 13:57:58 +02:00
parent 0e402073da
commit f67476dd8f
11 changed files with 13 additions and 13 deletions

View File

@@ -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;

View File

@@ -59,7 +59,7 @@ class ImageWrapper extends ImageBase {
/**
* @private
* @type {function():void}
* @type {?function():void}
*/
this.unlisten_ = null;

View File

@@ -46,7 +46,7 @@ class ImageTile extends Tile {
/**
* @private
* @type {function():void}
* @type {?function():void}
*/
this.unlisten_ = null;

View File

@@ -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;

View File

@@ -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;

View File

@@ -97,7 +97,7 @@ class MousePosition extends Control {
/**
* @private
* @type {import("../proj/Projection.js").default}
* @type {?import("../proj/Projection.js").default}
*/
this.mapProjection_ = null;

View File

@@ -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;

View File

@@ -73,7 +73,7 @@ class TopoJSON extends JSONFeature {
/**
* @private
* @type {Array<string>}
* @type {?Array<string>}
*/
this.layers_ = options.layers ? options.layers : null;

View File

@@ -115,7 +115,7 @@ class DragAndDrop extends Interaction {
/**
* @private
* @type {Array<import("../events.js").EventsKey>}
* @type {?Array<import("../events.js").EventsKey>}
*/
this.dropListenKeys_ = null;

View File

@@ -104,7 +104,7 @@ class ReprojTile extends Tile {
/**
* @private
* @type {Array<import("../events.js").EventsKey>}
* @type {?Array<import("../events.js").EventsKey>}
*/
this.sourcesListenerKeys_ = null;

View File

@@ -53,7 +53,7 @@ class IconImage extends EventTarget {
/**
* @private
* @type {function():void}
* @type {?function():void}
*/
this.unlisten_ = null;