@types/temp
Type definitions for temp 0.8.3 from https://www.github.com/DefinitelyTyped/DefinitelyTyped
Last updated 10 years ago by types .
MIT · Original npm · Tarball · package.json
$ cnpm install @types/temp 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/temp

Summary

This package contains type definitions for temp (https://github.com/bruce/node-temp).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/temp.

index.d.ts

// Type definitions for temp 0.9
// Project: https://github.com/bruce/node-temp
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

import * as fs from "fs";

declare namespace temp {
    interface OpenFile {
        path: string;
        fd: number;
    }

    interface Stats {
        files: number;
        dirs: number;
    }

    interface AffixOptions {
        prefix?: string | undefined;
        suffix?: string | undefined;
        dir?: string | undefined;
    }

    let dir: string;

    function track(value?: boolean): typeof temp;

    function mkdir(affixes: string | AffixOptions | undefined, callback: (err: any, dirPath: string) => void): void;
    function mkdir(affixes?: string | AffixOptions): Promise<string>;

    function mkdirSync(affixes?: string | AffixOptions): string;

    function open(affixes: string | AffixOptions | undefined, callback: (err: any, result: OpenFile) => void): void;
    function open(affixes?: string | AffixOptions): Promise<OpenFile>;

    function openSync(affixes?: string | AffixOptions): OpenFile;

    function path(affixes?: string | AffixOptions, defaultPrefix?: string): string;

    function cleanup(callback: (err: any, result: Stats) => void): void;
    function cleanup(): Promise<Stats>;

    function cleanupSync(): boolean | Stats;

    function createWriteStream(affixes?: string | AffixOptions): fs.WriteStream;
}

export = temp;

Additional Details

  • Last updated: Tue, 12 Sep 2023 12:34:33 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Daniel Rosenwasser.

Current Tags

  • 0.9.2                                ...           latest (3 years ago)
  • 0.8.34                                ...           ts2.0 (7 years ago)
  • 0.8.34                                ...           ts2.1 (7 years ago)
  • 0.8.34                                ...           ts2.2 (7 years ago)
  • 0.8.34                                ...           ts2.3 (7 years ago)
  • 0.8.34                                ...           ts2.4 (7 years ago)
  • 0.8.34                                ...           ts2.5 (7 years ago)
  • 0.8.34                                ...           ts2.6 (7 years ago)
  • 0.8.34                                ...           ts2.7 (7 years ago)
  • 0.8.34                                ...           ts2.8 (7 years ago)
  • 0.8.34                                ...           ts2.9 (7 years ago)
  • 0.8.34                                ...           ts3.0 (7 years ago)
  • 0.8.34                                ...           ts3.1 (7 years ago)
  • 0.8.34                                ...           ts3.2 (7 years ago)
  • 0.8.34                                ...           ts3.3 (7 years ago)
  • 0.8.34                                ...           ts3.4 (7 years ago)
  • 0.9.0                                ...           ts3.5 (5 years ago)
  • 0.9.1                                ...           ts3.6 (5 years ago)
  • 0.9.1                                ...           ts3.7 (5 years ago)
  • 0.9.1                                ...           ts3.8 (5 years ago)
  • 0.9.1                                ...           ts3.9 (5 years ago)
  • 0.9.1                                ...           ts4.0 (5 years ago)
  • 0.9.1                                ...           ts4.1 (5 years ago)
  • 0.9.1                                ...           ts4.2 (5 years ago)
  • 0.9.2                                ...           ts4.3 (3 years ago)
  • 0.9.2                                ...           ts4.4 (3 years ago)
  • 0.9.2                                ...           ts4.5 (3 years ago)
  • 0.9.2                                ...           ts4.6 (3 years ago)
  • 0.9.2                                ...           ts4.7 (3 years ago)
  • 0.9.2                                ...           ts4.8 (3 years ago)
  • 0.9.2                                ...           ts4.9 (3 years ago)
  • 0.9.2                                ...           ts5.0 (3 years ago)
  • 0.9.2                                ...           ts5.1 (3 years ago)
  • 0.9.2                                ...           ts5.2 (3 years ago)
  • 0.9.2                                ...           ts5.3 (3 years ago)

20 Versions

  • 0.9.2                                ...           3 years ago
  • 0.9.1                                ...           5 years ago
  • 0.9.0                                ...           5 years ago
  • 0.8.34                                ...           7 years ago
  • 0.8.33                                ...           7 years ago
  • 0.8.32                                ...           8 years ago
  • 0.8.31                                ...           8 years ago
  • 0.8.30                                ...           9 years ago
  • 0.8.29                                ...           10 years ago
  • 0.8.28                                ...           10 years ago
  • 0.8.27                                ...           10 years ago
  • 0.8.26-alpha                                ...           10 years ago
  • 0.8.25-alpha                                ...           10 years ago
  • 0.8.24-alpha                                ...           10 years ago
  • 0.8.23-alpha                                ...           10 years ago
  • 0.8.22-alpha                                ...           10 years ago
  • 0.8.21-alpha                                ...           10 years ago
  • 0.8.20-alpha                                ...           10 years ago
  • 0.8.15-alpha                                ...           10 years ago
  • 0.8.14-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |