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

@@ -293,7 +293,7 @@ class VectorSource extends Source {
/**
* @private
* @type {Collection<import("../Feature.js").default<Geometry>>}
* @type {Collection<import("../Feature.js").default<Geometry>>|null}
*/
this.featuresCollection_ = null;
@@ -683,7 +683,7 @@ class VectorSource extends Source {
* Get the features collection associated with this source. Will be `null`
* unless the source was configured with `useSpatialIndex` set to `false`, or
* with an {@link module:ol/Collection} as `features`.
* @return {Collection<import("../Feature.js").default<Geometry>>} The collection of features.
* @return {Collection<import("../Feature.js").default<Geometry>>|null} The collection of features.
* @api
*/
getFeaturesCollection() {