Skip to content

MetricProvenance — @gj-kit/expo-workouts

A public type from @gj-kit/expo-workouts. The signature below is taken directly from the 0.1.1 release declaration.

import { MetricProvenance } from '@gj-kit/expo-workouts';
/**
* Where a distance/energy number came from.
* - 'associated' — summed from samples explicitly associated with the workout.
* - 'total' — a total the writer stated but did not back with samples (iOS legacy workouts).
* - 'derived' — summed over the workout's window from whatever samples were there.
* **May include other sources.** Treat `derived` as a hint, never as the workout's
* own number.
*/
type MetricProvenance = 'associated' | 'total' | 'derived';

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-workouts
  • Version: 0.1.1
  • Public entry: .
  • Source: GitHub