TS 4.1 changes Position -> GeolocationPosition (#47681)

Update ol to match.
This commit is contained in:
Nathan Shively-Sanders 2020-09-18 08:50:02 -07:00 committed by GitHub
parent 81c224f5de
commit c8f773c541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

3
types/ol/index.d.ts vendored
View File

@ -2,8 +2,7 @@
// Project: https://github.com/openlayers/openlayers, https://openlayers.org
// Definitions by: Rifa'i M. Hanif <https://github.com/hanreev>
// 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