Skip to content

createMediaDebugLogger — @gj-kit/expo-media

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

import { createMediaDebugLogger } from '@gj-kit/expo-media/core';
/**
* 게이트: `platform.isDev && platform.os !== 'web'` (전신 `debugEnabled()` 보존).
*
* 전신의 세 번째 조건이던 "테스트 환경 제외"는 `PlatformAdapter.isDev`가 흡수한다
* (기본 어댑터가 `__DEV__ && NODE_ENV !== 'test'`로 채운다 — §3.3). 코어에는 그 전역이 없다.
* `options.enabled`는 호스트의 명시적 스위치이며, 생략하면 전신과 동일하게 플랫폼 게이트만 남는다.
*
* ⚠ 게이트가 닫혀 있으면 두 메서드 모두 **완전 no-op**이다 — details를 만드는 비용도 치르지 않는다.
*/
declare function createMediaDebugLogger(input: {
readonly platform: PlatformAdapter;
readonly options?: MediaDebugOptions | undefined;
}): MediaDebugLogger;

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