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

View File

@@ -66,6 +66,9 @@ class GeoJSON extends JSONFeature {
);
if (options.featureProjection) {
/**
* @type {import("../proj/Projection.js").default}
*/
this.defaultFeatureProjection = getProjection(options.featureProjection);
}

View File

@@ -55,7 +55,7 @@ class SimpleGeometry extends Geometry {
/**
* @abstract
* @return {Array<*>} Coordinates.
* @return {Array<*> | null} Coordinates.
*/
getCoordinates() {
return abstract();

View File

@@ -29,7 +29,7 @@ export const SymbolType = {
/**
* @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 {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`.