Merge pull request #13382 from seravifer/main

Fix wrong types when using `"skipLibCheck": false`
This commit is contained in:
Andreas Hocevar
2022-02-14 13:45:42 +01:00
committed by GitHub
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -66,6 +66,9 @@ class GeoJSON extends JSONFeature {
); );
if (options.featureProjection) { if (options.featureProjection) {
/**
* @type {import("../proj/Projection.js").default}
*/
this.defaultFeatureProjection = getProjection(options.featureProjection); this.defaultFeatureProjection = getProjection(options.featureProjection);
} }
+1 -1
View File
@@ -55,7 +55,7 @@ class SimpleGeometry extends Geometry {
/** /**
* @abstract * @abstract
* @return {Array<*>} Coordinates. * @return {Array<*> | null} Coordinates.
*/ */
getCoordinates() { getCoordinates() {
return abstract(); return abstract();
+1 -1
View File
@@ -29,7 +29,7 @@ export const SymbolType = {
/** /**
* @typedef {Object} LiteralSymbolStyle * @typedef {Object} LiteralSymbolStyle
* @property {ExpressionValue|Array<ExpressionValue, ExpressionValue>} size Size, mandatory. * @property {ExpressionValue|Array<ExpressionValue>} size Size, mandatory.
* @property {SymbolType} symbolType Symbol type to use, either a regular shape or an image. * @property {SymbolType} symbolType Symbol type to use, either a regular shape or an image.
* @property {string} [src] Path to the image to be used for the symbol. Only required with `symbolType: 'image'`. * @property {string} [src] Path to the image to be used for the symbol. Only required with `symbolType: 'image'`.
* @property {string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loading `src`. * @property {string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loading `src`.