Skip to content

RecordedPut — @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 { RecordedPut } from '@gj-kit/expo-media/testing';
/**
* 기록된 PUT 1건.
*
* `PutRequest`를 확장한 형태라 `readonly PutRequest[]`로 받는 소비자와 호환된다(§5.6 시그니처).
* `uri`(로컬 경로)와 `body`(바이너리)는 어느 경로로 들어왔는지에 따라 한쪽만 채워진다 —
* 그 자체가 "이 업로드가 네이티브였나 웹이었나"의 판별자다.
*/
type RecordedPut = PutRequest & {
readonly uri?: string | undefined;
readonly body?: BinarySource | undefined;
/** 바이너리 PUT의 크기. presign `sizeBytes`와 실제 전송 바이트의 일치 검증에 쓴다(§7 하드닝 3). */
readonly sizeBytes?: number | 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