UNPKG

universal-fs

Version:

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

15 lines (14 loc) 536 B
export type WriteFileParams = { file: PathLike; data: string | ArrayBufferView | Iterable<string | ArrayBufferView> | AsyncIterable<string | ArrayBufferView>; options?: (ObjectEncodingOptions & { mode?: Mode | undefined; flag?: OpenMode | undefined; /** * If all data is successfully written to the file, and `flush` * is `true`, `filehandle.sync()` is used to flush the data. * @default false */ flush?: boolean | undefined; } & Abortable) | null; };