Improve some null types to prepare for strictNullChecks

This commit is contained in:
EvertEt
2022-01-30 12:15:46 +01:00
parent 12f8bae261
commit e3d3d24f05
20 changed files with 41 additions and 39 deletions

View File

@@ -127,7 +127,7 @@ class ImageSource extends Source {
/**
* @private
* @type {Array<number>}
* @type {Array<number>|null}
*/
this.resolutions_ =
options.resolutions !== undefined ? options.resolutions : null;
@@ -146,7 +146,7 @@ class ImageSource extends Source {
}
/**
* @return {Array<number>} Resolutions.
* @return {Array<number>|null} Resolutions.
*/
getResolutions() {
return this.resolutions_;