Skip to content

RecordingTransportOptions — @gj-kit/expo-media

A public type from @gj-kit/expo-media/testing. The signature below is taken directly from the 0.6.1 release declaration.

import { RecordingTransportOptions } from '@gj-kit/expo-media/testing';
type RecordingTransportOptions = {
/**
* 이 상태코드로 응답한다. 생략 시 200.
* ⚠ PUT의 모호한 2xx 밖 응답은 `upload-failed` + `possibly-uploaded` cleanup 후보가 된다
* (`isSuccessStatus`, §5.4-①). 상태코드 주입구가 없으면 그 안전한 실패 경계가 검증되지 않는다.
*/
readonly failWithStatus?: number | undefined;
/**
* PUT 본문 실행 훅 — 시작 직후 await된다.
*
* ⚠ §7.1의 「기기 자산 업로드 루프의 **의도적 순차 실행**」은 "동시 진행 0"을 단언해야 하는데,
* 그것은 전송이 실제로 지연될 때만 관측된다. 이 훅에 지연을 넣고 `timeline`을 보면
* `start:0, end:0, start:1, end:1`(순차) 과 `start:0, start:1, …`(병렬)이 구분된다.
*/
readonly onPut?: ((put: RecordedPut, index: number) => Promise<void> | void) | 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-media
  • Version: 0.6.1
  • Public entry: ./testing
  • Source: GitHub