Skip to content

WorkoutRef — @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 { WorkoutRef } from '@gj-kit/expo-workouts';
/**
* Identify a workout without ambiguity. Two id spaces exist and both are UUIDs, so no runtime
* heuristic can tell them apart — the type makes the choice unmissable.
* The `?: never` members are load-bearing: a bare `{a} | {b}` union ACCEPTS both keys together.
*/
type WorkoutRef =
/** The platform id from `Workout.id`. */
{
readonly nativeId: string;
readonly clientId?: never;
}
/** Your own `WorkoutWrite.id`. */
| {
readonly clientId: string;
readonly nativeId?: never;
};

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