AuthorizationState — @gj-kit/expo-workouts
A public type from @gj-kit/expo-workouts/core. The signature below is taken directly from the 0.1.1 release declaration.
Verified import example
Section titled “Verified import example”import { AuthorizationState } from '@gj-kit/expo-workouts/core';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * Availability and authorization fused into ONE union. Reading a scope's status on a platform that * has no usable health store is **unrepresentable** rather than merely discouraged. */type AuthorizationState = { readonly availability: 'unavailable'; readonly reason: 'platformTooOld' | 'notSupported';} | { readonly availability: 'updateRequired';} | { readonly availability: 'available'; /** Every scope is always present — no `undefined` holes to guard. */ readonly read: Readonly<Record<Scope, ScopeStatus>>; readonly write: Readonly<Record<Scope, ScopeStatus>>; /** Android READ_HEALTH_DATA_HISTORY. Always `'unknown'` on iOS — that platform has no wall, * and reporting a grant the user never gave would be a lying field. */ readonly history: ScopeStatus; readonly routeAccess: RouteAccess;};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.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-workouts - Version:
0.1.1 - Public entry:
./core - Source: GitHub