Skip to content

iosActivityTypeFromKind — @gj-kit/expo-workouts

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

import { iosActivityTypeFromKind } from '@gj-kit/expo-workouts';
/**
* WRITE direction, iOS. `indoor` is NOT part of the integer choice on this platform — it is written
* separately to `HKMetadataKeyIndoorWorkout` (and `HKMetadataKeySwimmingLocationType` for swimming),
* and OMITTED entirely when `undefined` so the read side can keep telling "outdoor" and "unknown"
* apart.
* ⚠ `kind: 'other'` writes `.other`(3000) and is NOT recoverable on read.
* ⚠ Never emits 20 or 71 — those are read-aliases only.
*/
declare function iosActivityTypeFromKind(kind: WorkoutKind, indoor?: boolean | undefined): 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