@types/promised-temp
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Installation

npm install --save @types/promised-temp

Summary

This package contains type definitions for promised-temp (https://www.npmjs.com/package/promised-temp).

Details

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

index.d.ts

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

import * as fs from "fs";
import { AffixOptions, AffixOptions as _A, OpenFile, OpenFile as _O, Stats, Stats as _S } from "temp";

interface TempStatic {
    dir: string;
    track(value?: boolean): TempStatic;

    path(affixes?: string | AffixOptions, defaultPrefix?: string): string;
    mkdir(affixes?: string | AffixOptions): Promise<string>;
    open(affixes?: string | AffixOptions): Promise<OpenFile>;
    cleanup(): Promise<boolean | Stats>;
    createWriteStream(affixes?: string | AffixOptions): Promise<fs.WriteStream>;
}
declare namespace PromisedTemp {
    type AffixOptions = _A;
    type OpenFile = _O;
    type Stats = _S;
}

declare var PromisedTemp: TempStatic;
export = PromisedTemp;

Additional Details

Credits

These definitions were written by Saqib Rokadia.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/promised-temp

Weekly Downloads

2

Version

0.1.5

License

MIT

Unpacked Size

4.21 kB

Total Files

5

Last publish

Collaborators

  • types