DefinitelyTyped/types/write-file-atomically/index.d.ts
2018-04-17 12:52:41 -07:00

15 lines
551 B
TypeScript

// Type definitions for write-file-atomically 2.0
// Project: https://github.com/shinnn/write-file-atomically#readme
// Definitions by: Aankhen <https://github.com/Aankhen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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;
}