@plus45/types 1.1.5 → 1.1.8
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.
- package/index.ts +27 -2
- package/package.json +1 -1
- package/types/exercise/exercise_units.ts +12 -0
- package/types/workout/workout.ts +10 -0
package/index.ts
CHANGED
|
@@ -2,6 +2,31 @@ import { Exercise } from "./types/exercise/exercise";
|
|
|
2
2
|
import ExerciseType from "./types/exercise/exercise_types";
|
|
3
3
|
import { AccessToken } from "./types/user/access_token";
|
|
4
4
|
import { User } from "./types/user/user";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
DistanceUnits,
|
|
7
|
+
ExerciseUnit,
|
|
8
|
+
TimeUnits,
|
|
9
|
+
WeightUnits
|
|
10
|
+
} from "./types/exercise/exercise_units";
|
|
11
|
+
import Workout from "./types/workout/workout";
|
|
6
12
|
|
|
7
|
-
export
|
|
13
|
+
export {
|
|
14
|
+
// User Type Structures
|
|
15
|
+
type User,
|
|
16
|
+
|
|
17
|
+
// Exercise Type Structures
|
|
18
|
+
type Exercise,
|
|
19
|
+
type AccessToken,
|
|
20
|
+
|
|
21
|
+
// Workout Type Structures
|
|
22
|
+
type Workout,
|
|
23
|
+
|
|
24
|
+
// Enums
|
|
25
|
+
ExerciseType,
|
|
26
|
+
ExerciseUnit,
|
|
27
|
+
|
|
28
|
+
// Collections
|
|
29
|
+
WeightUnits,
|
|
30
|
+
DistanceUnits,
|
|
31
|
+
TimeUnits
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -14,3 +14,15 @@ export enum ExerciseUnit {
|
|
|
14
14
|
feet = "FEET",
|
|
15
15
|
meters = "METERS"
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
export const WeightUnits = [ExerciseUnit.pounds, ExerciseUnit.kilograms];
|
|
19
|
+
|
|
20
|
+
export const TimeUnits = [ExerciseUnit.seconds, ExerciseUnit.minutes];
|
|
21
|
+
|
|
22
|
+
export const DistanceUnits = [
|
|
23
|
+
ExerciseUnit.miles,
|
|
24
|
+
ExerciseUnit.kilometers,
|
|
25
|
+
ExerciseUnit.yards,
|
|
26
|
+
ExerciseUnit.feet,
|
|
27
|
+
ExerciseUnit.meters
|
|
28
|
+
];
|