@types/write-file-atomically
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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

Credits

These definitions were written by Aankhen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/write-file-atomically

Weekly Downloads

6

Version

2.0.3

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • types