mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
[mz] Added fs.mkdtemp (#19928)
This commit is contained in:
committed by
Mohamed Hegazy
parent
5e4682a0ba
commit
2aa66e9396
24
types/mz/fs.d.ts
vendored
24
types/mz/fs.d.ts
vendored
@@ -273,6 +273,30 @@ export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoExcept
|
||||
*/
|
||||
export function mkdir(path: string | Buffer, mode?: string | number): Promise<void>;
|
||||
|
||||
/**
|
||||
* Creates a unique temporary directory.
|
||||
*
|
||||
* @param prefix temp dir prefix
|
||||
* @param options "$encoding" or {encoding: "$encoding"}
|
||||
*/
|
||||
export function mkdtemp(prefix: string, options: string | {encoding: string}, callback: (err: NodeJS.ErrnoException | undefined, folder: string) => void): void
|
||||
|
||||
/**
|
||||
* Creates a unique temporary directory.
|
||||
*
|
||||
* @param prefix temp dir prefix
|
||||
* @param options "$encoding" or {encoding: "$encoding"}
|
||||
*/
|
||||
export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | undefined, folder: string) => void): void;
|
||||
|
||||
/**
|
||||
* Creates a unique temporary directory.
|
||||
*
|
||||
* @param prefix temp dir prefix
|
||||
* @param options "$encoding" or {encoding: "$encoding"}
|
||||
*/
|
||||
export function mkdtemp(prefix: string, options: string | {encoding: string}): Promise<string>
|
||||
|
||||
/**
|
||||
* Asynchronous `readdir(3)`.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user