DurableFileStore — @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.
Verified import example
Section titled “Verified import example”import { DurableFileStore } from '@gj-kit/expo-media';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”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.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-media - Version:
0.6.1 - Public entry:
. - Source: GitHub