UNPKG

universal-fs

Version:

Allows a client or server to access the file system in the current codebase or a different one.

12 lines (10 loc) 255 B
export interface ReadFileParams { path: PathLike; options?: | ({ encoding?: null | undefined | BufferEncoding; flag?: OpenMode | undefined; } & Abortable) | null; } export type ReadFileReturn = Promise<string | Buffer>;