Skip to content

PermissionRequestDto — @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.

import { PermissionRequestDto } from '@gj-kit/expo-workouts/core';
/**
* 권한 요청의 원시 결과. **before/after 비교가 판정의 유일한 근거다** — contract의 반환 집합을
* "사용자가 방금 부여한 것"으로 읽지 않는다.
* `conclusive: false`는 플랫폼이 아무것도 돌려주지 않았다는 뜻이며(f120), 그때 scope 상태는 불변이다.
*/
/**
* 권한 요청의 **방향이 있는** 입력 (Phase 3 결함 B). 플랫폼별 문자열 어휘:
* - Android — `android.permission.health.READ_*` / `…WRITE_*`. `read`와 `write`의 합집합이
* contract 집합이며, `READ_EXERCISE_ROUTES`는 **절대 여기 들어오지 않는다**(f110).
* - iOS — HealthKit 타입 식별자. `read`는 `requestAuthorization(read:)`, `write`는 `toShare:`다.
* 같은 식별자가 양쪽에 동시에 나타나는 것이 정상이다.
*/
interface PermissionRequestDto {
readonly read: readonly string[];
readonly write: readonly string[];
}

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: ./core
  • Source: GitHub