memfs
Version:
In-memory file-system with Node's fs API.
12 lines (11 loc) • 599 B
TypeScript
import type { NodeFsaContext } from './types';
/**
* Creates a new {@link NodeFsaContext}.
*/
export declare const ctx: (partial?: Partial<NodeFsaContext>) => NodeFsaContext;
export declare const basename: (path: string, separator: string) => string;
export declare const assertName: (name: string, method: string, klass: string) => void;
export declare const assertCanWrite: (mode: 'read' | 'readwrite') => void;
export declare const newNotFoundError: () => DOMException;
export declare const newTypeMismatchError: () => DOMException;
export declare const newNotAllowedError: () => DOMException;