FakeSeed — @gj-kit/expo-workouts
@gj-kit/expo-workouts/testing에서 공개하는 interface입니다. package version 0.1.1의 release declaration을 그대로 표시합니다.
검증된 import 예제
섹션 제목: “검증된 import 예제”import { FakeSeed } from '@gj-kit/expo-workouts/testing';시그니처, 매개변수, 반환 타입
섹션 제목: “시그니처, 매개변수, 반환 타입”interface FakeSeed { readonly platform: WorkoutsPlatform; readonly availability?: Availability | undefined; readonly authorization?: AuthorizationState | undefined; /** 이미 부여된 scope. 생략하면 **전부 부여**돼 있다 — 대부분의 테스트가 인가를 소재로 하지 않는다. */ readonly granted?: FakeScopeGrants | undefined; /** 이 빌드가 **선언한** scope (config plugin). 생략하면 전부. 선언 밖 요청은 `invalidArgument`다. */ readonly declared?: FakeScopeGrants | undefined; readonly workouts?: readonly FakeWorkoutInput[] | undefined; /** Deterministic clock. Defaults to a fixed instant so snapshots and budget tests are stable. */ readonly nowMs?: number | undefined; /** `createFakeWorkouts`가 만드는 API에 그대로 넘어간다. `null`이면 읽기 페이서를 끈다. */ readonly budget?: ReadBudget | null | undefined; /** per-route 동의 상한 (f104). 짧은 값 + `hangNext('openRoute')`가 그 상태를 재현한다. */ readonly routeConsentTimeoutMs?: number | undefined;}이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.
Release context
섹션 제목: “Release context”- 패키지:
@gj-kit/expo-workouts - 버전:
0.1.1 - 공개 entry:
./testing - 소스: GitHub