Skip to content

RecordedSpan — @gj-kit/expo-media

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

import { RecordedSpan } from '@gj-kit/expo-media/testing';
type RecordedSpan = {
readonly operation: MediaOperation;
/** `track`은 시작 payload를 항상 주고, `begin`은 생략할 수 있다(§7.2 표). */
readonly extra?: Readonly<Record<string, unknown>> | undefined;
readonly kind: 'track' | 'begin';
/** 아직 끝나지 않았으면 `null`. ⚠ **한 스팬은 정확히 한 번만 종료돼야 한다**(§5.1). */
readonly outcome: 'succeed' | 'fail' | 'cancel' | null;
readonly finish?: MediaActivityFinish | undefined;
readonly error?: unknown;
};

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