summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /cli/js/lib.deno.ns.d.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts63
1 files changed, 30 insertions, 33 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 47402187d..962179381 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -34,7 +34,7 @@ declare interface Performance {
* associated name (a "measure"). */
measure(
measureName: string,
- options?: PerformanceMeasureOptions
+ options?: PerformanceMeasureOptions,
): PerformanceMeasure;
}
@@ -394,7 +394,7 @@ declare namespace Deno {
dst: Writer,
options?: {
bufSize?: number;
- }
+ },
): Promise<number>;
/** Turns a Reader, `r`, into an async iterator.
@@ -430,7 +430,7 @@ declare namespace Deno {
r: Reader,
options?: {
bufSize?: number;
- }
+ },
): AsyncIterableIterator<Uint8Array>;
/** Turns a ReaderSync, `r`, into an iterator.
@@ -466,7 +466,7 @@ declare namespace Deno {
r: ReaderSync,
options?: {
bufSize?: number;
- }
+ },
): IterableIterator<Uint8Array>;
/** Synchronously open a file and return an instance of `Deno.File`. The
@@ -499,7 +499,7 @@ declare namespace Deno {
*/
export function open(
path: string | URL,
- options?: OpenOptions
+ options?: OpenOptions,
): Promise<File>;
/** Creates a file if none exists or truncates an existing file and returns
@@ -641,7 +641,7 @@ declare namespace Deno {
export function seekSync(
rid: number,
offset: number,
- whence: SeekMode
+ whence: SeekMode,
): number;
/** Seek a resource ID (`rid`) to the given `offset` under mode given by `whence`.
@@ -673,7 +673,7 @@ declare namespace Deno {
export function seek(
rid: number,
offset: number,
- whence: SeekMode
+ whence: SeekMode,
): Promise<number>;
/** Close the given resource ID (rid) which has been previously opened, such
@@ -973,7 +973,7 @@ declare namespace Deno {
* Requires `allow-write` permission. */
export function mkdir(
path: string | URL,
- options?: MkdirOptions
+ options?: MkdirOptions,
): Promise<void>;
export interface MakeTempOptions {
@@ -1132,7 +1132,7 @@ declare namespace Deno {
export function chownSync(
path: string | URL,
uid: number | null,
- gid: number | null
+ gid: number | null,
): void;
/** Change owner of a regular file or directory. This functionality
@@ -1153,7 +1153,7 @@ declare namespace Deno {
export function chown(
path: string | URL,
uid: number | null,
- gid: number | null
+ gid: number | null,
): Promise<void>;
export interface RemoveOptions {
@@ -1188,7 +1188,7 @@ declare namespace Deno {
* Requires `allow-write` permission. */
export function remove(
path: string | URL,
- options?: RemoveOptions
+ options?: RemoveOptions,
): Promise<void>;
/** Synchronously renames (moves) `oldpath` to `newpath`. Paths may be files or
@@ -1417,7 +1417,7 @@ declare namespace Deno {
* Requires `allow-write` permission on toPath. */
export function copyFileSync(
fromPath: string | URL,
- toPath: string | URL
+ toPath: string | URL,
): void;
/** Copies the contents and permissions of one file to another specified path,
@@ -1432,7 +1432,7 @@ declare namespace Deno {
* Requires `allow-write` permission on toPath. */
export function copyFile(
fromPath: string | URL,
- toPath: string | URL
+ toPath: string | URL,
): Promise<void>;
/** Returns the full path destination of the named symbolic link.
@@ -1538,7 +1538,7 @@ declare namespace Deno {
export function writeFileSync(
path: string | URL,
data: Uint8Array,
- options?: WriteFileOptions
+ options?: WriteFileOptions,
): void;
/** Write `data` to the given `path`, by default creating a new file if needed,
@@ -1558,7 +1558,7 @@ declare namespace Deno {
export function writeFile(
path: string | URL,
data: Uint8Array,
- options?: WriteFileOptions
+ options?: WriteFileOptions,
): Promise<void>;
/** Synchronously write string `data` to the given `path`, by default creating a new file if needed,
@@ -1573,7 +1573,7 @@ declare namespace Deno {
export function writeTextFileSync(
path: string | URL,
data: string,
- options?: WriteFileOptions
+ options?: WriteFileOptions,
): void;
/** Asynchronously write string `data` to the given `path`, by default creating a new file if needed,
@@ -1588,7 +1588,7 @@ declare namespace Deno {
export function writeTextFile(
path: string | URL,
data: string,
- options?: WriteFileOptions
+ options?: WriteFileOptions,
): Promise<void>;
/** Synchronously truncates or extends the specified file, to reach the
@@ -1692,7 +1692,7 @@ declare namespace Deno {
*
* Requires `allow-net` permission. */
export function listen(
- options: ListenOptions & { transport?: "tcp" }
+ options: ListenOptions & { transport?: "tcp" },
): Listener;
export interface ListenTlsOptions extends ListenOptions {
@@ -1844,20 +1844,17 @@ declare namespace Deno {
*/
export function watchFs(
paths: string | string[],
- options?: { recursive: boolean }
+ options?: { recursive: boolean },
): AsyncIterableIterator<FsEvent>;
export class Process<T extends RunOptions = RunOptions> {
readonly rid: number;
readonly pid: number;
- readonly stdin: T["stdin"] extends "piped"
- ? Writer & Closer
+ readonly stdin: T["stdin"] extends "piped" ? Writer & Closer
: (Writer & Closer) | null;
- readonly stdout: T["stdout"] extends "piped"
- ? Reader & Closer
+ readonly stdout: T["stdout"] extends "piped" ? Reader & Closer
: (Reader & Closer) | null;
- readonly stderr: T["stderr"] extends "piped"
- ? Reader & Closer
+ readonly stderr: T["stderr"] extends "piped" ? Reader & Closer
: (Reader & Closer) | null;
/** Resolves to the current status of the process. */
status(): Promise<ProcessStatus>;
@@ -1886,15 +1883,15 @@ declare namespace Deno {
export type ProcessStatus =
| {
- success: true;
- code: 0;
- signal?: undefined;
- }
+ success: true;
+ code: 0;
+ signal?: undefined;
+ }
| {
- success: false;
- code: number;
- signal?: number;
- };
+ success: false;
+ code: number;
+ signal?: number;
+ };
export interface RunOptions {
/** Arguments to pass. Note, the first element needs to be a path to the