Installation
npm install --save @types/write-file-atomically
Summary
This package contains type definitions for write-file-atomically (https://github.com/shinnn/write-file-atomically#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/write-file-atomically.
index.d.ts
import writeFileAtomic = require("write-file-atomic");
export = WriteFileAtomically;
declare function WriteFileAtomically(
path: string,
data: WriteFileAtomically.Data,
options?: writeFileAtomic.Options,
): Promise<void>;
declare namespace WriteFileAtomically {
type Data = string | Buffer | Uint8Array;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/write-file-atomic
Credits
These definitions were written by Aankhen.