Skip to content

RouteWriteOutcome — @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 { RouteWriteOutcome } from '@gj-kit/expo-workouts';
/**
* What happened to `route`.
* - 'stored' — written and readable.
* - 'none' — you passed `'none'`.
* - 'dropped' — you passed points but NOTHING survived hygiene; the workout was still saved.
* - 'notPermitted' — Android: WRITE_EXERCISE_ROUTE is not granted; the workout was still saved.
* ⚠ On a re-save this means the previously stored route is now GONE.
* - 'deferred' — `status === 'pendingUnlock'`; the retry will attach it.
*/
type RouteWriteOutcome = 'stored' | 'none' | 'dropped' | 'notPermitted' | 'deferred';

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