Skip to content

Commit

Permalink
chore: bob build
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMoran committed Sep 12, 2023
1 parent 24275c6 commit 20fd119
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/commonjs/native-types.js.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions lib/commonjs/utils/ensureTotals.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/commonjs/utils/ensureTotals.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/commonjs/utils/saveWorkoutSample.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/commonjs/utils/saveWorkoutSample.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/module/native-types.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/module/utils/ensureTotals.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/module/utils/ensureTotals.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/module/utils/saveWorkoutSample.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/module/utils/saveWorkoutSample.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion lib/typescript/src/native-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,10 @@ type ReactNativeHealthkitTypeNative = {
*/
readonly disableAllBackgroundDelivery: () => Promise<boolean>;
readonly saveCorrelationSample: <TIdentifier extends HKCorrelationTypeIdentifier, TSamples extends readonly (HKCategorySampleRawForSaving | HKQuantitySampleRawForSaving)[]>(typeIdentifier: TIdentifier, samples: TSamples, start: string, end: string, metadata: MetadataMapperForCorrelationIdentifier<TIdentifier>) => Promise<boolean>;
readonly saveWorkoutSample: (typeIdentifier: HKWorkoutActivityType, quantities: readonly HKQuantitySampleRawForSaving[], start: string, end: string, metadata: HKWorkoutMetadata) => Promise<string | null>;
readonly saveWorkoutSample: (typeIdentifier: HKWorkoutActivityType, quantities: readonly HKQuantitySampleRawForSaving[], start: string, end: string, totals: {
readonly distance?: number;
readonly energyBurned?: number;
}, metadata: HKWorkoutMetadata) => Promise<string | null>;
readonly saveWorkoutRoute: (workoutUUID: string, locations: readonly CLLocationRawForSaving[]) => Promise<boolean>;
readonly queryCorrelationSamples: <TIdentifier extends HKCorrelationTypeIdentifier>(typeIdentifier: TIdentifier, from: string, to: string) => Promise<readonly HKCorrelationRaw<TIdentifier>[]>;
subscribeToObserverQuery(identifier: HKSampleTypeIdentifier): Promise<QueryId>;
Expand Down
2 changes: 2 additions & 0 deletions lib/typescript/src/utils/ensureTotals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare function ensureTotals<TTotals>(totals?: TTotals): TTotals;
export default ensureTotals;
4 changes: 4 additions & 0 deletions lib/typescript/src/utils/saveWorkoutSample.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import type { HKWorkoutActivityType, HKWorkoutMetadata } from '../native-types';
import type { HKQuantitySampleForSaving } from '../types';
declare function saveWorkoutSample<TIdentifier extends HKWorkoutActivityType>(typeIdentifier: TIdentifier, quantities: readonly HKQuantitySampleForSaving[], _start: Date, options?: {
readonly end?: Date;
readonly totals?: {
readonly distance?: number;
readonly energyBurned?: number;
};
readonly metadata?: HKWorkoutMetadata;
}): Promise<string | null>;
export default saveWorkoutSample;

0 comments on commit 20fd119

Please sign in to comment.