mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
551 B
TypeScript
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;
|
|
}
|