Skip to content

createDurableFileStore — @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 { createDurableFileStore } from '@gj-kit/expo-media/core';
/**
* Create a durable, app-owned file store from a host storage adapter.
*
* The store never trusts caller-supplied paths as complete URIs. It constructs
* them from individually validated segments, so a cleanup request cannot turn
* into deletion of a sibling app file through `..`, encoded separators, or a
* prefix collision.
*/
declare function createDurableFileStore(input: {
readonly root: string;
readonly files: DurableFileStoreAdapter;
}): DurableFileStore;

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