Skip to content

DeviceUploads — @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 { DeviceUploads } from '@gj-kit/expo-media/core';
interface DeviceUploads<TAsset, TCollectionId extends string = string> {
/**
* ⚠ 순차 실행 고정(위 참조). 업로드 성공·실패와 무관하게 finally에서 `staging.cleanup`을 호출한다 —
* 누락하면 업로드한 **모든** 사진의 원본 사본이 앱 컨테이너에 영구 축적된다(§7 하드닝 7).
*/
uploadDeviceAssets(assets: readonly DeviceAssetRef[], options?: (DeviceResolveOptions & {
readonly collectionId?: TCollectionId | null | undefined;
readonly max?: number | undefined;
}) | undefined): Promise<readonly UploadResult<TAsset>[]>;
}

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