UNPKG

@abstract-filesystem/filesystem

Version:
12 lines 484 B
/// <reference types="node" /> import { AbstractDriver } from '@abstract-filesystem/types'; export declare type Options = {}; export default class MemoryDriver extends AbstractDriver<Options> { options: Options; protected fs: Map<string, any>; has(file: string): Promise<boolean>; create(file: string, content: Buffer): Promise<boolean>; remove(file: string): Promise<boolean>; read(file: string): Promise<Buffer>; } //# sourceMappingURL=memory-driver.d.ts.map