@zenfs/core
Version:
A filesystem, anywhere
15 lines (14 loc) • 591 B
TypeScript
import type { BoundContext, ContextInit, FSContext, V_Context } from './internal/contexts.js';
export type { BoundContext, ContextInit, FSContext, V_Context };
/**
* A map of all contexts.
* @internal
* @category Contexts
*/
export declare const boundContexts: Map<number, BoundContext>;
/**
* Allows you to restrict operations to a specific root path and set of credentials.
* Note that the default credentials of a bound context are copied from the global credentials.
* @category Contexts
*/
export declare function bindContext(this: V_Context, init?: ContextInit): BoundContext;