mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-13 08:57:26 +08:00
15 lines
567 B
TypeScript
15 lines
567 B
TypeScript
// Type definitions for mkdirp 0.5.1
|
|
// Project: https://github.com/substack/node-mkdirp
|
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
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;
|
|
|
|
declare namespace mkdirp {
|
|
function sync(dir: string, opts?: any): string;
|
|
}
|
|
export = mkdirp;
|