diff --git a/src/ol/MapBrowserEventHandler.js b/src/ol/MapBrowserEventHandler.js index f35ad17811..b17513cd53 100644 --- a/src/ol/MapBrowserEventHandler.js +++ b/src/ol/MapBrowserEventHandler.js @@ -59,7 +59,7 @@ class MapBrowserEventHandler extends Target { /** * The most recent "down" type event (or null if none have occurred). * Set on pointerdown. - * @type {PointerEvent} + * @type {PointerEvent|null} * @private */ this.down_ = null; diff --git a/src/ol/css.js b/src/ol/css.js index 89d000e1de..0e5b6e709d 100644 --- a/src/ol/css.js +++ b/src/ol/css.js @@ -91,7 +91,7 @@ const fontRegExMatchIndex = [ * Get the list of font families from a font spec. Note that this doesn't work * for font families that have commas in them. * @param {string} fontSpec The CSS font property. - * @return {FontParameters} The font parameters (or null if the input spec is invalid). + * @return {FontParameters|null} The font parameters (or null if the input spec is invalid). */ export const getFontParameters = function (fontSpec) { const match = fontSpec.match(fontRegEx); diff --git a/src/ol/format/KML.js b/src/ol/format/KML.js index 4c87601b00..076f45b34a 100644 --- a/src/ol/format/KML.js +++ b/src/ol/format/KML.js @@ -195,13 +195,13 @@ const KML_SERIALIZERS = makeStructureNS(NAMESPACE_URIS, { let DEFAULT_COLOR; /** - * @type {Fill} + * @type {Fill|null} */ let DEFAULT_FILL_STYLE = null; /** * Get the default fill style (or null if not yet set). - * @return {Fill} The default fill style. + * @return {Fill|null} The default fill style. */ export function getDefaultFillStyle() { return DEFAULT_FILL_STYLE; @@ -233,13 +233,13 @@ let DEFAULT_IMAGE_STYLE_SIZE; let DEFAULT_IMAGE_STYLE_SRC; /** - * @type {import("../style/Image.js").default} + * @type {import("../style/Image.js").default|null} */ let DEFAULT_IMAGE_STYLE = null; /** * Get the default image style (or null if not yet set). - * @return {import("../style/Image.js").default} The default image style. + * @return {import("../style/Image.js").default|null} The default image style. */ export function getDefaultImageStyle() { return DEFAULT_IMAGE_STYLE; @@ -251,13 +251,13 @@ export function getDefaultImageStyle() { let DEFAULT_NO_IMAGE_STYLE; /** - * @type {Stroke} + * @type {Stroke|null} */ let DEFAULT_STROKE_STYLE = null; /** * Get the default stroke style (or null if not yet set). - * @return {Stroke} The default stroke style. + * @return {Stroke|null} The default stroke style. */ export function getDefaultStrokeStyle() { return DEFAULT_STROKE_STYLE; @@ -269,39 +269,39 @@ export function getDefaultStrokeStyle() { let DEFAULT_TEXT_STROKE_STYLE; /** - * @type {Text} + * @type {Text|null} */ let DEFAULT_TEXT_STYLE = null; /** * Get the default text style (or null if not yet set). - * @return {Text} The default text style. + * @return {Text|null} The default text style. */ export function getDefaultTextStyle() { return DEFAULT_TEXT_STYLE; } /** - * @type {Style} + * @type {Style|null} */ let DEFAULT_STYLE = null; /** * Get the default style (or null if not yet set). - * @return {Style} The default style. + * @return {Style|null} The default style. */ export function getDefaultStyle() { return DEFAULT_STYLE; } /** - * @type {Array