Skip to content

MediaUploadCompletion — @gj-kit/expo-media

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

import { MediaUploadCompletion } from '@gj-kit/expo-media';
/** 바이트가 스토리지에 올라간 뒤 보내는 등록 페이로드. */
type MediaUploadCompletion<TCollectionId extends string = string> = {
readonly fileName: string;
readonly contentType: MediaContentType;
readonly sizeBytes: number;
readonly objectName: string;
readonly contentHash?: string | undefined;
/**
* 불투명 그룹 id — 킷은 해석하지 않고 전달만 한다(§6.2 기각: `CollectionId` 브랜드).
* memorylog2는 이것을 `albumId`로 매핑한다. 빈 문자열은 런타임 차단(§6.1-⑪) —
* falsy 스프레드로 조용히 탈락해 앨범 없이 저장되는 경로를 막는다.
*/
readonly collectionId?: TCollectionId | undefined;
readonly photo?: MediaMetadata | undefined;
readonly durationMs?: number | undefined;
readonly width?: number | undefined;
readonly height?: number | undefined;
readonly poster?: UploadedPoster | undefined;
};

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