From fcc0b442e48ab4393fae02b21d7ab75962fc33bf Mon Sep 17 00:00:00 2001 From: Jakub Pelc Date: Tue, 1 Oct 2024 11:18:27 +0200 Subject: [PATCH] Fix lint --- src/geo/projection/globe_utils.ts | 1 - src/util/web_worker_transfer.test.ts | 3 +-- src/util/web_worker_transfer.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/geo/projection/globe_utils.ts b/src/geo/projection/globe_utils.ts index ecc068ca84..a6a4e5acde 100644 --- a/src/geo/projection/globe_utils.ts +++ b/src/geo/projection/globe_utils.ts @@ -3,7 +3,6 @@ import {clamp, differenceOfAnglesDegrees, lerp, mod, remapSaturate, wrap} from ' import {LngLat} from '../lng_lat'; import {MAX_VALID_LATITUDE, scaleZoom} from '../transform_helper'; import Point from '@mapbox/point-geometry'; -import {tileCoordinatesToMercatorCoordinates} from './mercator_utils'; import {EXTENT} from '../../data/extent'; export function getGlobeCircumferencePixels(transform: {worldSize: number; center: {lat: number}}): number { diff --git a/src/util/web_worker_transfer.test.ts b/src/util/web_worker_transfer.test.ts index 4969e0dc97..ce9d4db68e 100644 --- a/src/util/web_worker_transfer.test.ts +++ b/src/util/web_worker_transfer.test.ts @@ -1,6 +1,5 @@ -import {SerializedObject} from '../../dist/maplibre-gl'; import {AJAXError} from './ajax'; -import {register, serialize, deserialize} from './web_worker_transfer'; +import {register, serialize, deserialize, SerializedObject} from './web_worker_transfer'; describe('web worker transfer', () => { test('round trip', () => { diff --git a/src/util/web_worker_transfer.ts b/src/util/web_worker_transfer.ts index a8f1cd4325..3616156959 100644 --- a/src/util/web_worker_transfer.ts +++ b/src/util/web_worker_transfer.ts @@ -7,7 +7,7 @@ import {isImageBitmap} from './util'; /** * A class that is serialized to and json, that can be constructed back to the original class in the worker or in the main thread */ -type SerializedObject = { +export type SerializedObject = { [_: string]: S; };