Skip to content

Commit b9f211d

Browse files
committed
Fix types
1 parent 849f3e7 commit b9f211d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/web/app/(map)/components/Panels/Dashboard/DashboardEvents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { VatsimEvent } from "@sr24/types/interface";
1+
import type { VatsimEvent } from "@sr24/types/vatsim";
22
import { useSettingsStore } from "@/storage/zustand";
33
import { convertTime } from "@/utils/helpers";
44

apps/web/app/(map)/lib/controllerFeatures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FIRFeature, SimAwareTraconFeature } from "@sr24/types/db";
2-
import type { ControllerDelta, ControllerMerged, WsAll } from "@sr24/types/interface";
2+
import type { ControllerDelta, ControllerMerged, InitialData } from "@sr24/types/interface";
33
import Feature, { type FeatureLike } from "ol/Feature";
44
import GeoJSON from "ol/format/GeoJSON";
55
import { Circle, type MultiPolygon, Point, type Polygon } from "ol/geom";
@@ -65,7 +65,7 @@ const readGeoJSONFeature = (geojson: SimAwareTraconFeature | FIRFeature, type: "
6565
return feature;
6666
};
6767

68-
export async function initControllerFeatures(data: WsAll): Promise<void> {
68+
export async function initControllerFeatures(data: InitialData): Promise<void> {
6969
const traconFeatures: Feature<MultiPolygon | Polygon>[] = [];
7070
const firFeatures: Feature<MultiPolygon>[] = [];
7171
const controllerLabelFeatures: Feature<Point>[] = [];

apps/web/app/(map)/lib/pilotFeatures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PilotDelta, WsAll } from "@sr24/types/interface";
1+
import type { PilotDelta, InitialData } from "@sr24/types/interface";
22
import { Feature, type Map as OlMap } from "ol";
33
import type { Extent } from "ol/extent";
44
import { Point } from "ol/geom";
@@ -24,7 +24,7 @@ interface RBushPilotFeature {
2424
const pilotRBush = new RBush<RBushPilotFeature>();
2525
const pilotMap = new Map<string, RBushPilotFeature>();
2626

27-
export function initPilotFeatures(data: WsAll): void {
27+
export function initPilotFeatures(data: InitialData): void {
2828
for (const p of data.pilots) {
2929
const props: PilotProperties = {
3030
type: "pilot",

0 commit comments

Comments
 (0)