Skip to content

MediaTelemetry — @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 { MediaTelemetry } from '@gj-kit/expo-media/core';
interface MediaTelemetry {
/**
* `run()`을 감싸 성공/예외를 자동 보고한다. 구현은 `run()`의 결과·예외를 그대로
* return/rethrow해야 한다. 라이브러리는 호스트 텔레메트리를 관측자로 취급하므로,
* 구현 자체의 예외는 실제 업로드·저장 결과를 바꾸지 않는다.
*/
track<T>(operation: MediaOperation, extra: Readonly<Record<string, unknown>>, run: () => Promise<T>): Promise<T>;
begin(operation: MediaOperation, extra?: Readonly<Record<string, unknown>> | undefined): MediaActivity;
}

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