Skip to content

derivePauses — @gj-kit/expo-workouts

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

import { derivePauses } from '@gj-kit/expo-workouts/core';
/**
* Gaps of at least `minGapMs` between consecutive points, as pauses. `minGapMs` is required — the
* threshold that separates "a GPS fix was late" from "the user stopped" is the caller's domain.
*
* `auto` is left `undefined`: these are DERIVED by you, not reported by the platform.
*/
declare function derivePauses(points: readonly RoutePoint[], minGapMs: number): Pause[];

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: ./core
  • Source: GitHub