UNPKG

inventoresed

Version:

Z-Wave driver written entirely in JavaScript/TypeScript

16 lines (15 loc) 387 B
/** Defines which methods must be supported by a replacement filesystem */ export interface FileSystem { ensureDir(path: string): Promise<void>; writeFile( file: string, data: string | Buffer, options?: | { encoding: string; } | string, ): Promise<void>; readFile(file: string, encoding: string): Promise<string>; pathExists(path: string): Promise<boolean>; }