Skip to content

createPendingSelection — @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 { createPendingSelection } from '@gj-kit/expo-media/core';
/**
* Build a pure staged-selection model: dedup by stable identity, a hard cap with per-item
* rejection reasons, exactly-once preview release, HEIC/HEIF preview gating, and capture-time
* extraction. State is an immutable ordered list owned by the host (React state, a store, a
* plain variable) — the selection holds no items itself.
*
* The revoke-once registry is shared through a global symbol, so the guarantee holds per item
* object across selection instances and across the package's entry copies (`.` and `./core`,
* ESM and CJS) within one realm.
*
* @throws MediaError `config-invalid` when `max` is not a positive integer.
*/
declare function createPendingSelection(options: PendingSelectionOptions): PendingSelection;

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