Skip to content

MediaUploadApi — @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 { MediaUploadApi } from '@gj-kit/expo-media/core';
/**
* 백엔드 계약: presigned 슬롯을 발급받고, 올라간 오브젝트를 등록한다.
* `TAsset`은 호스트 API가 저장된 자산으로 반환하는 무엇이든 된다.
*/
interface MediaUploadApi<TAsset, TCollectionId extends string = string> extends MediaUploadIntentApi<TCollectionId> {
completeUpload(input: MediaUploadCompletion<TCollectionId>): Promise<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