Skip to content

TimeWindow — @gj-kit/expo-workouts

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

import { TimeWindow } from '@gj-kit/expo-workouts';
/**
* Epoch-ms half-open window. Everywhere in this library it means: the record's **START instant** in
* `[fromMs, toMs)`. There is no overlap variant and no local-day variant — day bucketing is your
* job, done afterwards from `utcOffsetMin`.
*
* Both bounds are validated against `EPOCH_MS_FLOOR`: a value in `(0, 1e11)` is rejected with
* `invalidArgument` because it is a seconds timestamp in a milliseconds field.
*/
interface TimeWindow {
/** Inclusive. Epoch MILLISECONDS, integer. */
readonly fromMs: number;
/** EXCLUSIVE. Epoch MILLISECONDS, integer, > `fromMs`. */
readonly toMs: number;
}

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