Skip to content

FakeWorkoutInput — @gj-kit/expo-workouts

A public interface from @gj-kit/expo-workouts/testing. The signature below is taken directly from the 0.1.1 release declaration.

import { FakeWorkoutInput } from '@gj-kit/expo-workouts/testing';
interface FakeWorkoutInput {
/** 생략하면 페이크가 결정적 UUID를 만든다. */
readonly nativeId?: string | undefined;
readonly clientId?: string | undefined;
readonly isOwn?: boolean | undefined;
readonly kind?: WorkoutKind | undefined;
readonly indoor?: boolean | undefined;
readonly startMs: number;
readonly endMs: number;
readonly distanceM?: number | undefined;
readonly activeEnergyKcal?: number | undefined;
readonly elevationGainM?: number | undefined;
readonly steps?: number | undefined;
readonly heartRate?: readonly HeartRateSample[] | undefined;
/** 있으면 `routeState`는 기본적으로 `'available'`이 된다. */
readonly route?: readonly RoutePoint[] | undefined;
readonly routeState?: RouteState | undefined;
readonly sourceId?: string | 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.

  • Package: @gj-kit/expo-workouts
  • Version: 0.1.1
  • Public entry: ./testing
  • Source: GitHub