@types/mkdirp
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -1,4 +0,5 @@ | ||
// Type definitions for mkdirp 0.5.1 | ||
// Type definitions for mkdirp 0.5 | ||
// Project: https://github.com/substack/node-mkdirp | ||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds> | ||
// mrmlnc <https://github.com/mrmlnc> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -8,8 +9,33 @@ | ||
declare function mkdirp(dir: string, cb: (err: NodeJS.ErrnoException, made: string) => void): void; | ||
declare function mkdirp(dir: string, opts: any, cb: (err: NodeJS.ErrnoException, made: string) => void): void; | ||
import fs = require('fs'); | ||
declare function mkdirp(dir: string, cb: (err: NodeJS.ErrnoException, made: mkdirp.Made) => void): void; | ||
declare function mkdirp(dir: string, opts: mkdirp.Mode | mkdirp.Options, cb: (err: NodeJS.ErrnoException, made: mkdirp.Made) => void): void; | ||
declare namespace mkdirp { | ||
function sync(dir: string, opts?: any): string; | ||
type Made = string | null; | ||
type Mode = number | string | null; | ||
interface FsImplementation { | ||
mkdir: typeof fs.mkdir; | ||
stat: typeof fs.stat; | ||
} | ||
interface FsImplementationSync { | ||
mkdirSync: typeof fs.mkdirSync; | ||
statSync: typeof fs.statSync; | ||
} | ||
interface Options { | ||
mode?: Mode; | ||
fs?: FsImplementation; | ||
} | ||
interface OptionsSync { | ||
mode?: Mode; | ||
fs?: FsImplementationSync; | ||
} | ||
function sync(dir: string, opts?: Mode | OptionsSync): Made; | ||
} | ||
export = mkdirp; |
{ | ||
"name": "@types/mkdirp", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "TypeScript definitions for mkdirp", | ||
@@ -9,3 +9,9 @@ "license": "MIT", | ||
"name": "Bart van der Schoor", | ||
"url": "https://github.com/Bartvds" | ||
"url": "https://github.com/Bartvds", | ||
"githubUsername": "Bartvds" | ||
}, | ||
{ | ||
"name": "mrmlnc", | ||
"url": "https://github.com/mrmlnc", | ||
"githubUsername": "mrmlnc" | ||
} | ||
@@ -22,4 +28,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "1b3dd423d30162206701a9c2e1b14d2f1f0e426aa464e80aee71f479d36d5de7", | ||
"typesPublisherContentHash": "af65553f1d10b41c6e6f6dab4dba6316aa992f1c55f415d3ce95db9302f75afa", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT | ||
* Dependencies: node | ||
* Last updated: Sun, 03 Dec 2017 16:31:01 GMT | ||
* Dependencies: fs, node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>. | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, mrmlnc <https://github.com/mrmlnc>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3664
31