diff --git a/types/ol/Geolocation.d.ts b/types/ol/Geolocation.d.ts index 605626966c..76f7f41f73 100644 --- a/types/ol/Geolocation.d.ts +++ b/types/ol/Geolocation.d.ts @@ -74,7 +74,7 @@ export default class Geolocation extends BaseObject { un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void; } declare class GeolocationError extends BaseEvent { - constructor(error: PositionError); + constructor(error: GeolocationPositionError); code: number; message: string; } diff --git a/types/ol/index.d.ts b/types/ol/index.d.ts index e3bcaeb8c6..248c709efa 100644 --- a/types/ol/index.d.ts +++ b/types/ol/index.d.ts @@ -2,8 +2,7 @@ // Project: https://github.com/openlayers/openlayers, https://openlayers.org // Definitions by: Rifa'i M. Hanif // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.1 -// Minimum TypeScript Version: 3.1 +// Minimum TypeScript Version: 4.1 // These definitions is generated using jsdoc. See https://github.com/hanreev/types-ol