Skip to content

truncatedJpegWithExif — @gj-kit/expo-media

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

import { truncatedJpegWithExif } from '@gj-kit/expo-media/testing';
/**
* APP1 길이 필드가 실제 바이트보다 긴 **잘린** JPEG.
*
* ⚠ 파서의 경계 검사(`isReadable`)가 살아 있으면 예외 없이 `undefined`가 나오고, 죽어 있으면
* `DataView` RangeError가 업로드 전체를 죽인다(§5.3 파서 주석). 그 차이를 이 픽스처가 가른다.
*/
declare function truncatedJpegWithExif(): Uint8Array;

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