Skip to content

BinarySource — @gj-kit/expo-media

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

import { BinarySource } from '@gj-kit/expo-media/core';
/**
* DOM lib 없이 Blob/File을 받기 위한 구조적 최소 타입.
* 브라우저 Blob·RN Blob·Node Blob이 전부 구조적으로 만족하며,
* vitest에서 plain object로 전 경로를 도는 것을 가능하게 한다(§10.1).
*/
interface BinarySource {
readonly size: number;
readonly type?: string | undefined;
arrayBuffer(): Promise<ArrayBuffer>;
}

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