Skip to content

SaveableMedia — @gj-kit/expo-media

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

import { SaveableMedia } from '@gj-kit/expo-media/core';
type SaveableMedia = {
/**
* 안정 파일명의 1차 소스(G8). 없거나 빈 문자열이면 배열 인덱스+1로 폴백한다 —
* 전신 규칙 `${prefix}-${image.id || index + 1}.${ext}`(saveImages.ts:71) 보존.
*/
readonly id?: string | undefined;
/**
* ⚠ **단일 진실이다.** `originalUrl || thumbnailUrl` 같은 폴백은 호스트 DTO 지식이므로
* 라이브러리가 아니라 앱이 소유한다(전신 `imageDownloadUrl` 폐지 — §5.7.3).
*/
readonly url: string;
readonly fileName?: string | undefined;
readonly contentType?: MediaContentType | 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: ./core
  • Source: GitHub