n_a_types 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +3 -11
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1,26 +1,18 @@
1
-
2
-
1
+ export const API_VERSION = "3.0.2";
3
2
  export type Section = Guidebook['sections'][number];
4
3
  export type Area = Section['areas'][number];
5
4
  export type ClimbImageGroup = Area['climbImageGroups'][number];
6
5
  export type Climb = Area['climbs'][number];
7
-
8
6
  export type Coord = { x: number, y: number };
9
7
  export type POI = Guidebook['parkingInfo'][number];
10
-
11
8
  export type LatLong = { latitude: number, longitude: number }
12
9
  export type TrailPolyline = LatLong[]
13
-
14
10
  export type ClimbType = 'TRAD' | 'SPORT' | 'BOULDER' | 'ICE' | 'TOPROPE'
15
-
16
-
17
- const API_VERSION_CONST = 3 as const;
18
-
19
11
  export type StarRating = "ONE" | "TWO" | "THREE" | "FOUR";
20
12
 
21
13
  ///GUIDEBOOK FETCH
22
14
  export type Guidebook = {
23
- apiVersion: typeof API_VERSION_CONST,
15
+ apiVersion: string,
24
16
  images: string[],
25
17
  sections: ({
26
18
  areas: ({
@@ -139,5 +131,5 @@ export type GuidebookProductData = {
139
131
  heroImage: string;
140
132
  state: string;
141
133
  accessTrailPolylines: TrailPolyline[];
142
- }[], apiVersion: typeof API_VERSION_CONST;
134
+ }[], apiVersion: string;
143
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n_a_types",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "scripts": {