Skip to content

createFetchBinarySourceLoader — @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 { createFetchBinarySourceLoader } from '@gj-kit/expo-media/web';
/**
* `blob:`/`data:` URI → `NamedBinarySource`(§3.3-⑤-b).
*
* `fetch`는 주입 가능하지만 **호출 시점에** 해석한다(생성 시점 캡처는 SSR·폴리필 환경에서
* undefined를 영구 고정한다).
*/
declare function createFetchBinarySourceLoader(input?: {
readonly fetch?: typeof fetch | undefined;
} | undefined): BinarySourceLoader;

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