@types/write-file-atomic
TypeScript definitions for write-file-atomic
Last updated 9 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/write-file-atomic 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/write-file-atomic

Summary

This package contains type definitions for write-file-atomic (https://github.com/npm/write-file-atomic).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/write-file-atomic.

index.d.ts

// Type definitions for write-file-atomic 4.0
// Project: https://github.com/npm/write-file-atomic
// Definitions by: BendingBender <https://github.com/BendingBender>
//                 Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

export = writeFile;

declare function writeFile(
    filename: string,
    data: string | Buffer,
    options: writeFile.Options | BufferEncoding,
    callback: (error?: Error) => void,
): void;
declare function writeFile(filename: string, data: string | Buffer, callback: (error?: Error) => void): void;
declare function writeFile(
    filename: string,
    data: string | Buffer,
    options?: writeFile.Options | BufferEncoding,
): Promise<void>;

declare namespace writeFile {
    function sync(filename: string, data: string | Buffer, options?: Options | BufferEncoding): void;

    interface Options {
        chown?:
            | {
                  uid: number;
                  gid: number;
              }
            | undefined;
        /**
         * @default 'utf8'
         */
        encoding?: BufferEncoding | undefined;
        fsync?: boolean | undefined;
        mode?: number | undefined;
        tmpfileCreated?: ((tmpfile: string) => void) | undefined;
    }
}

Additional Details

  • Last updated: Thu, 10 Feb 2022 19:01:43 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by BendingBender, and Piotr Błażejewicz.

Current Tags

  • 4.0.0                                ...           latest (4 years ago)
  • 2.1.2                                ...           ts2.0 (7 years ago)
  • 2.1.2                                ...           ts2.1 (7 years ago)
  • 2.1.2                                ...           ts2.2 (7 years ago)
  • 2.1.2                                ...           ts2.3 (7 years ago)
  • 2.1.2                                ...           ts2.4 (7 years ago)
  • 2.1.2                                ...           ts2.5 (7 years ago)
  • 2.1.2                                ...           ts2.6 (7 years ago)
  • 2.1.2                                ...           ts2.7 (7 years ago)
  • 3.0.0                                ...           ts2.8 (6 years ago)
  • 3.0.0                                ...           ts2.9 (6 years ago)
  • 3.0.1                                ...           ts3.0 (6 years ago)
  • 3.0.1                                ...           ts3.1 (6 years ago)
  • 3.0.1                                ...           ts3.2 (6 years ago)
  • 3.0.1                                ...           ts3.3 (6 years ago)
  • 3.0.1                                ...           ts3.4 (6 years ago)
  • 3.0.1                                ...           ts3.5 (6 years ago)
  • 3.0.2                                ...           ts3.6 (5 years ago)
  • 3.0.2                                ...           ts3.7 (5 years ago)
  • 4.0.0                                ...           ts3.8 (4 years ago)
  • 4.0.0                                ...           ts3.9 (4 years ago)
  • 4.0.0                                ...           ts4.0 (4 years ago)
  • 4.0.0                                ...           ts4.1 (4 years ago)
  • 4.0.0                                ...           ts4.2 (4 years ago)
  • 4.0.0                                ...           ts4.3 (4 years ago)
  • 4.0.0                                ...           ts4.4 (4 years ago)
  • 4.0.0                                ...           ts4.5 (4 years ago)
  • 4.0.0                                ...           ts4.6 (4 years ago)
  • 4.0.0                                ...           ts4.7 (4 years ago)
  • 4.0.0                                ...           ts4.8 (4 years ago)
  • 4.0.0                                ...           ts4.9 (4 years ago)
  • 4.0.0                                ...           ts5.0 (4 years ago)
  • 4.0.0                                ...           ts5.1 (4 years ago)

8 Versions

  • 4.0.0                                ...           4 years ago
  • 3.0.3                                ...           4 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.1.2                                ...           7 years ago
  • 2.1.1                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |