Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kubapelc committed Oct 1, 2024
1 parent e6e91ff commit fcc0b44
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/geo/projection/globe_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions src/util/web_worker_transfer.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/util/web_worker_transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<S extends Serialized = any> = {
export type SerializedObject<S extends Serialized = any> = {
[_: string]: S;
};

Expand Down

0 comments on commit fcc0b44

Please sign in to comment.