Skip to content

createFetchBinaryTransport — @gj-kit/expo-media

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

import { createFetchBinaryTransport } from '@gj-kit/expo-media/web';
/**
* fetch 기반 바이너리 PUT 전송기(§5.6).
*
* `fetch`는 주입 가능하지만 **호출 시점에** 해석한다. 생성 시점에 붙잡으면 SSR·폴리필 환경에서
* 모듈 평가 순간의 값(대개 undefined)이 영구히 고정된다.
*/
declare function createFetchBinaryTransport(input?: {
readonly fetch?: typeof fetch | undefined;
} | undefined): BinaryTransport;

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