pendingItemFromFile — @gj-kit/expo-media
A public function from @gj-kit/expo-media/web. The signature below is taken directly from the 0.6.1 release declaration.
Verified import example
Section titled “Verified import example”import { pendingItemFromFile } from '@gj-kit/expo-media/web';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * Wrap a DOM `File` as a `PendingBinaryItem` for `createPendingSelection`. * * Creates an object URL as `previewUri` (skipped for HEIC/HEIF, which browsers cannot render, and * in environments without `URL.createObjectURL`) and a `revoke` closure that releases it. The * selection calls `revoke` at most once, when the item is removed or cleared; pass the add result's * `releasable` items to `PendingSelection.release` yourself. `File.lastModified` becomes part of * the dedup key. */declare function pendingItemFromFile(file: File): PendingBinaryItem;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:
./web - Source: GitHub