Skip to content

Commit

Permalink
fix: missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Jul 6, 2024
1 parent 9aa150e commit ab816d9
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions packages/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,22 @@ import type { MonitorFlyRegion } from "@openstatus/db/src/schema";
// },
// } as const;

export const flyRegionsDict: Record<
MonitorFlyRegion,
{
code: MonitorFlyRegion;
location: string;
flag: string;
continent:
| "Europe"
| "North America"
| "South America"
| "Asia"
| "Africa"
| "Oceania";
}
> = {
export type Continent =
| "Europe"
| "North America"
| "South America"
| "Asia"
| "Africa"
| "Oceania";

export type RegionInfo = {
code: MonitorFlyRegion;
location: string;
flag: string;
continent: Continent;
};

export const flyRegionsDict: Record<MonitorFlyRegion, RegionInfo> = {
ams: {
code: "ams",
location: "Amsterdam, Netherlands",
Expand Down Expand Up @@ -391,7 +392,7 @@ export const groupByContinent = Object.entries(flyRegionsDict).reduce<
Oceania: [],
Asia: [],
Africa: [],
}
},
);

export const vercelRegions = [
Expand Down

0 comments on commit ab816d9

Please sign in to comment.