From c8f773c541b96ad3dc1bd47021fa6e6ac468835a Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 18 Sep 2020 08:50:02 -0700 Subject: [PATCH] TS 4.1 changes Position -> GeolocationPosition (#47681) Update ol to match. --- types/ol/Geolocation.d.ts | 2 +- types/ol/index.d.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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