Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/temp

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/temp - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

6

temp/index.d.ts

@@ -22,5 +22,5 @@ // Type definitions for temp 0.9

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

@@ -27,0 +27,0 @@

{
"name": "@types/temp",
"version": "0.9.0",
"version": "0.9.1",
"description": "TypeScript definitions for temp",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/temp",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "eb80d56d647bf1b69b6ae234818e9840553b45958ffe78966e413b7273e58c5c",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "4f27e6a31d145a782ba800e74f39acb0e2080cd5246781c377854ef9f93799bb",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,60 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/temp.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/temp/index.d.ts)
````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: Mon, 05 Apr 2021 06:01:28 GMT
* Last updated: Fri, 02 Jul 2021 21:32:14 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +69,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc