UNPKG

korefile

Version:

File System API for Local/GitHub.

14 lines (13 loc) 469 B
import { KoreFileAdaptor } from "./KoreFileAdaptor"; export interface KoreFile { readFile(filePath: string): Promise<string>; writeFile(filePath: string, content: string | ArrayBuffer): Promise<void>; writeFiles(files: { path: string; content: string | ArrayBuffer; }[]): Promise<void>; deleteFile(filePath: string): Promise<void>; } export declare const createKoreFile: ({ adaptor }: { adaptor: KoreFileAdaptor; }) => KoreFile;