BREAKING: Remove deprecated mkdir, mkdirSync APIs (#4615)

This commit is contained in:
Chris Knight 2020-04-09 16:15:56 +01:00 committed by GitHub
parent 71ac552249
commit 2becae884e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 40 deletions

View file

@ -1043,13 +1043,6 @@ declare namespace Deno {
* Requires `allow-write` permission. */
export function mkdirSync(path: string, options?: MkdirOptions): void;
/** @deprecated */
export function mkdirSync(
path: string,
recursive?: boolean,
mode?: number
): void;
/** Creates a new directory with the specified path.
*
* await Deno.mkdir("new_dir");
@ -1061,13 +1054,6 @@ declare namespace Deno {
* Requires `allow-write` permission. */
export function mkdir(path: string, options?: MkdirOptions): Promise<void>;
/** @deprecated */
export function mkdir(
path: string,
recursive?: boolean,
mode?: number
): Promise<void>;
export interface MakeTempOptions {
/** Directory where the temporary directory should be created (defaults to
* the env variable TMPDIR, or the system's default, usually /tmp). */