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