AuthorizationRequest — @gj-kit/expo-workouts
A public interface 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 { AuthorizationRequest } from '@gj-kit/expo-workouts/core';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”interface AuthorizationRequest { /** * Coarse form — one token, and the recipe to copy: * `read: [...WORKOUT_TOTALS_SCOPES, 'routes']`. * Fine form — name the members: `read: ['workouts', 'heartRate']`. * * ⚠ A metric scope without `'workouts'` is `invalidArgument`. `read: ['distance']` alone is a * 100 % mistake — no API in this library reads distance except through a workout — so `./core` * rejects it before any platform call. */ readonly read: readonly Scope[]; readonly write?: readonly Scope[] | undefined; /** * D10, opt-in. Android only. Without it, reads are walled to the last 30 days and a wider window * throws `historyRequired`. It ALSO needs the config-plugin `history: true` prop; requesting it * without the manifest entry throws `invalidArgument` naming the missing prop. */ readonly history?: boolean | undefined;}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