hevy-shared 1.0.897 → 1.0.898
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/built/index.d.ts +0 -4
- package/built/typeUtils.d.ts +0 -23
- package/built/typeUtils.js +1 -8
- package/package.json +1 -1
package/built/index.d.ts
CHANGED
|
@@ -293,7 +293,6 @@ export interface BackofficeExistingUserResponse {
|
|
|
293
293
|
public_api_key: string | null;
|
|
294
294
|
limited_discovery: boolean;
|
|
295
295
|
coach_trial_expire_date?: string;
|
|
296
|
-
is_hevy_trainer_beta_enabled: boolean;
|
|
297
296
|
hevy_trainer_program: HevyTrainerProgram | null;
|
|
298
297
|
}
|
|
299
298
|
export interface BackofficeDeletedUserResponse {
|
|
@@ -343,7 +342,6 @@ export interface BackofficeAccountUpdate {
|
|
|
343
342
|
limited_discovery?: boolean;
|
|
344
343
|
delete_profile_pic?: boolean;
|
|
345
344
|
delete_link?: boolean;
|
|
346
|
-
is_hevy_trainer_beta_enabled?: boolean;
|
|
347
345
|
}
|
|
348
346
|
export interface BackofficeSuggestedUsersResponse {
|
|
349
347
|
users: SuggestedUser[];
|
|
@@ -700,8 +698,6 @@ export interface LibraryExercise extends BaseExerciseTemplate {
|
|
|
700
698
|
goal: TrainingGoal[] | undefined;
|
|
701
699
|
level: TrainingLevel[] | undefined;
|
|
702
700
|
category: ExerciseCategory | undefined;
|
|
703
|
-
url_female?: string;
|
|
704
|
-
thumbnail_url_female?: string;
|
|
705
701
|
}
|
|
706
702
|
/**
|
|
707
703
|
* Custom exercises are user-created templates with minimal properties
|
package/built/typeUtils.d.ts
CHANGED
|
@@ -33,29 +33,6 @@ export type Some<T> = {
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export declare const dangerousUncheckedTypeCast: <T = void, U extends T = T>(value: unknown) => U;
|
|
36
|
-
/**
|
|
37
|
-
* Wrapper for TypeScript's non-nullish assertion operator (`!`). Use this
|
|
38
|
-
* instead of the operator directly so it's easier to spot. And, again, only
|
|
39
|
-
* use this if you 100% know what you're doing. If you're not sure, then don't!
|
|
40
|
-
*/
|
|
41
|
-
export declare const assertNonNullish: <T>(value: T) => T & {};
|
|
42
|
-
/**
|
|
43
|
-
* What it's not: "I don't know what type this value may be."
|
|
44
|
-
* What it is: "I don't **CARE** about the type of this value."
|
|
45
|
-
* What it is: "Disable the type system for this variable."
|
|
46
|
-
*
|
|
47
|
-
* Alias for `any` that makes it more clear what's going on. Avoid using this,
|
|
48
|
-
* and absolutely avoid using `any` directly even harder! Instead, you may want
|
|
49
|
-
* to use one of the following:
|
|
50
|
-
*
|
|
51
|
-
* - `unknown` // any value, can be nullish or not - need to use type guards
|
|
52
|
-
* - `unknown[]` // same as above, but we know it's an array of these unknowns,
|
|
53
|
-
* // so we allow array functions to be used on it
|
|
54
|
-
* - `object` // any value where `typeof value === 'object'` - except `null`
|
|
55
|
-
* - `{}` // any non-nullish value, object or not; ignore the lint error
|
|
56
|
-
* - `never` // no value; not `undefined` or `null`, but _unreachable code_
|
|
57
|
-
*/
|
|
58
|
-
export type UNSAFE_Untyped = any;
|
|
59
36
|
/**
|
|
60
37
|
* Safer alternative to `JSON.parse`. Returns `unknown` instead of `any`.
|
|
61
38
|
*
|
package/built/typeUtils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TODO = exports.typeSafeIndex = exports.parseJSON = exports.
|
|
3
|
+
exports.TODO = exports.typeSafeIndex = exports.parseJSON = exports.dangerousUncheckedTypeCast = exports.exhaustiveTypeException = exports.exhaustiveTypeCheck = exports.isInArray = void 0;
|
|
4
4
|
const isInArray = (value, array) => array.includes(value);
|
|
5
5
|
exports.isInArray = isInArray;
|
|
6
6
|
const exhaustiveTypeCheck = (_) => void _;
|
|
@@ -30,13 +30,6 @@ exports.exhaustiveTypeException = exhaustiveTypeException;
|
|
|
30
30
|
*/
|
|
31
31
|
const dangerousUncheckedTypeCast = (value) => value;
|
|
32
32
|
exports.dangerousUncheckedTypeCast = dangerousUncheckedTypeCast;
|
|
33
|
-
/**
|
|
34
|
-
* Wrapper for TypeScript's non-nullish assertion operator (`!`). Use this
|
|
35
|
-
* instead of the operator directly so it's easier to spot. And, again, only
|
|
36
|
-
* use this if you 100% know what you're doing. If you're not sure, then don't!
|
|
37
|
-
*/
|
|
38
|
-
const assertNonNullish = (value) => value;
|
|
39
|
-
exports.assertNonNullish = assertNonNullish;
|
|
40
33
|
/**
|
|
41
34
|
* Safer alternative to `JSON.parse`. Returns `unknown` instead of `any`.
|
|
42
35
|
*
|