Skip to content

BrowserSaveAdapter — @gj-kit/expo-media

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

import { BrowserSaveAdapter } from '@gj-kit/expo-media';
interface BrowserSaveAdapter {
/**
* DOM 접근을 어댑터 안에 가둔다. `document`/`fetch`는 `"./web"`에서 **필수 주입**(§6.1-⑬) —
* 전신은 미주입 시 `globalThis.document`로 폴백해 네이티브에서도 조용히 생성됐다.
*/
saveByDownload(input: {
readonly url: string;
readonly fileName: string;
}): Promise<void>;
}

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