mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Add typings for the mkpath library
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="mkpath.d.ts" />
|
||||
import mkpath = require('mkpath');
|
||||
|
||||
mkpath('red/green/violet', function (err) {
|
||||
if (err) throw err;
|
||||
console.log('Directory structure red/green/violet created');
|
||||
});
|
||||
|
||||
mkpath.sync('/tmp/blue/orange', 700);
|
||||
Reference in New Issue
Block a user