mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add typings for the mkpath library
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// Type definitions for mkpath v0.1.0
|
||||
// Project: https://www.npmjs.com/package/mkpath
|
||||
// Definitions by: Jared Klopper <https://github.com/optical>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module 'mkpath' {
|
||||
module mkpath {
|
||||
function sync(path: string, mode?: number): void;
|
||||
}
|
||||
|
||||
function mkpath(path: string, callback?: (err: any) => void): void;
|
||||
function mkpath(path: string, mode?: number, callback?: (err?: any) => void): void;
|
||||
|
||||
export = mkpath;
|
||||
}
|
||||
Reference in New Issue
Block a user