summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts13
1 files changed, 6 insertions, 7 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 55cca78cf..4a13bafb6 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -721,7 +721,7 @@ declare namespace Deno {
// @url js/mkdir.d.ts
- export interface MkdirOption {
+ export interface MkdirOptions {
/** Defaults to `false`. If set to `true`, means that any intermediate
* directories will also be created (as with the shell command `mkdir -p`).
* Intermediate directories are created with the same permissions.
@@ -740,7 +740,7 @@ declare namespace Deno {
* Deno.mkdirSync("nested/directories", { recursive: true });
*
* Requires `allow-write` permission. */
- export function mkdirSync(path: string, options?: MkdirOption): void;
+ export function mkdirSync(path: string, options?: MkdirOptions): void;
/** @deprecated */
export function mkdirSync(
@@ -755,7 +755,7 @@ declare namespace Deno {
* await Deno.mkdir("nested/directories", { recursive: true });
*
* Requires `allow-write` permission. */
- export function mkdir(path: string, options?: MkdirOption): Promise<void>;
+ export function mkdir(path: string, options?: MkdirOptions): Promise<void>;
/** @deprecated */
export function mkdir(
@@ -920,8 +920,7 @@ declare namespace Deno {
// @url js/remove.d.ts
- /** UNSTABLE: rename to RemoveOptions */
- export interface RemoveOption {
+ export interface RemoveOptions {
/** Defaults to `false`. If set to `true`, path will be removed even if
* it's a non-empty directory. */
recursive?: boolean;
@@ -934,7 +933,7 @@ declare namespace Deno {
* Deno.removeSync("/path/to/dir/or/file", { recursive: false });
*
* Requires `allow-write` permission. */
- export function removeSync(path: string, options?: RemoveOption): void;
+ export function removeSync(path: string, options?: RemoveOptions): void;
/** Removes the named file or directory. Throws error if permission denied,
* path not found, or path is a non-empty directory and the `recursive`
@@ -943,7 +942,7 @@ declare namespace Deno {
* await Deno.remove("/path/to/dir/or/file", { recursive: false });
*
* Requires `allow-write` permission. */
- export function remove(path: string, options?: RemoveOption): Promise<void>;
+ export function remove(path: string, options?: RemoveOptions): Promise<void>;
// @url js/rename.d.ts