Merge pull request #13382 from seravifer/main
Fix wrong types when using `"skipLibCheck": false`
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class SimpleGeometry extends Geometry {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @return {Array<*>} Coordinates.
|
* @return {Array<*> | null} Coordinates.
|
||||||
*/
|
*/
|
||||||
getCoordinates() {
|
getCoordinates() {
|
||||||
return abstract();
|
return abstract();
|
||||||
|
|||||||
@@ -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`.
|
||||||
|
|||||||
Reference in New Issue
Block a user