Skip to content

deriveAuthorizationState — @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 { deriveAuthorizationState } from '@gj-kit/expo-workouts';
/**
* `AuthorizationSnapshotDto` -> `AuthorizationState`. The ONE place the platform's raw facts become
* our vocabulary (design §8.8 + the iOS "read is permanently `unknown`" rule + the before/after
* comparison that f120 makes the only honest source of `'denied'`).
*
* Every scope is always present in both records — there are no `undefined` holes to guard.
*/
declare function deriveAuthorizationState(snapshot: AuthorizationSnapshotDto, facts?: AuthorizationDerivationFacts | undefined): AuthorizationState;

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