add tempfile type definitions (#9581)

This commit is contained in:
Sam Verschueren
2016-06-08 17:21:57 +09:00
committed by Horiuchi_H
parent b040dd974e
commit 1c8c523ed8
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/// <reference path="./tempfile.d.ts" />
import tempfile = require('tempfile');
tempfile();
tempfile('.png');
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for tempfile v1.1.0
// Project: https://github.com/sindresorhus/tempfile
// Definitions by: Sam Verschueren <https://github.com/SamVerschueren>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "tempfile" {
function tempfile(extension?: string): string;
module tempfile {}
export = tempfile;
}