normalizeDurationMs — @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.
Verified import example
Section titled “Verified import example”import { normalizeDurationMs } from '@gj-kit/expo-media/core';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * 피커가 준 원시 duration을 밀리초로 정규화한다. * * - `os === 'web'` → 초 단위이므로 ×1000 * - 그 외(ios·android) → 이미 밀리초이므로 그대로 * - 0·음수·NaN·Infinity → `undefined` (전신 `asset.duration > 0` 게이트 보존) * * 반올림 규칙(`Math.round`)도 전신 그대로다 — 서버에 소수점 밀리초를 보내지 않는다. */declare function normalizeDurationMs(raw: number | undefined, os: MediaPlatform): number | undefined;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.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-media - Version:
0.6.1 - Public entry:
./core - Source: GitHub