Skip to content

MediaContentType — @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 { MediaContentType } from '@gj-kit/expo-media';
/**
* ⚠ **8종 고정 — 전신 `MEDIA_FILE_EXTENSIONS`(mediaTypes.ts:7-16)와 정확히 동일하다.**
* 초안이 신설했던 `image/gif`는 **제거**했다(G15 확정, §5.1):
* ① 전신 확장자 테이블에 gif 항목이 없다 → §7의 "전신 168줄 그대로" 문구가 참이 된다.
* ② 호스트(memorylog2)의 `SUPPORTED_MEDIA_CONTENT_TYPES`에도 없고 서버 zod가 그 목록으로
* 정규식 검증을 한다 → gif를 통과시키면 **presign 단계에서 서버가 거절**하는
* 클라이언트/서버 불일치가 생긴다. 클라이언트가 서버보다 넓은 유니언을 갖는 것은 순손실이다.
* 형식을 넓히려면 서버 유니언을 먼저 넓히고 minor로 추가한다(유니언 확장은 소비자에게 비파괴).
*/
type MediaContentType = 'image/jpeg' | 'image/png' | 'image/webp' | 'image/heic' | 'image/heif' | 'video/mp4' | 'video/quicktime' | 'video/webm';

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