We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Chart
1 parent 21dd28f commit fc9d30fCopy full SHA for fc9d30f
.changeset/happy-cups-fry.md
@@ -0,0 +1,5 @@
1
+---
2
+"@navigraph/charts": patch
3
4
+
5
+Added `ChartCategory` type for improved type-safety when dealing with chart objects.
packages/charts/src/public-types.ts
@@ -26,14 +26,16 @@ export interface BoundingBoxes {
26
insets: Inset[];
27
}
28
29
+export type ChartCategory = "APT" | "REF" | "ARR" | "DEP" | "APP";
30
31
export type Chart = {
32
image_day: string;
33
image_night: string;
34
thumb_day: string;
35
thumb_night: string;
36
icao_airport_identifier: string;
37
id: string;
- category: string;
38
+ category: ChartCategory;
39
precision_approach: boolean | null;
40
index_number: string;
41
name: string;
0 commit comments