Skip to content

DurableFileStore — @gj-kit/expo-media

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

import { DurableFileStore } from '@gj-kit/expo-media/storage';
interface DurableFileStore {
/** True only for a safe, non-empty file path rooted in this store. */
owns(uri: string | null | undefined): boolean;
/** Atomically-enough copy: a failed, empty, or size-mismatched destination is removed before rejection. */
copy(input: DurableFileStoreCopyInput): Promise<DurableFile>;
/** Copy a picker result while retaining a supported, validated media extension. */
copyPickedAsset(input: DurablePickedAssetCopyInput): Promise<DurablePickedAssetFile>;
/** Best-effort no-op for paths outside this store. */
remove(uri: string | null | undefined): 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: ./storage
  • Source: GitHub