diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-10-31 23:57:09 +0900 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-10-31 10:57:09 -0400 |
commit | 4f8c9369744bfa4b1223cec916cb0e5b261831dc (patch) | |
tree | 318601f91dd945584f540d40703e3d688ae85e0d /cli/js/lib.deno_runtime.d.ts | |
parent | 64957d92efdfbb8008e51c9d501b0d6754a777b7 (diff) |
Make EOF unique symbol (#3244)
Diffstat (limited to 'cli/js/lib.deno_runtime.d.ts')
-rw-r--r-- | cli/js/lib.deno_runtime.d.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cli/js/lib.deno_runtime.d.ts b/cli/js/lib.deno_runtime.d.ts index c0bebf461..4331319bf 100644 --- a/cli/js/lib.deno_runtime.d.ts +++ b/cli/js/lib.deno_runtime.d.ts @@ -83,8 +83,8 @@ declare namespace Deno { // @url js/io.d.ts - export const EOF: null; - export type EOF = null; + export const EOF: unique symbol; + export type EOF = typeof EOF; export enum SeekMode { SEEK_START = 0, SEEK_CURRENT = 1, @@ -2283,8 +2283,6 @@ declare namespace eventTarget { declare namespace io { // @url js/io.d.ts - export const EOF: null; - export type EOF = null; export enum SeekMode { SEEK_START = 0, SEEK_CURRENT = 1, @@ -2308,10 +2306,10 @@ declare namespace io { * * Implementations must not retain `p`. */ - read(p: Uint8Array): Promise<number | EOF>; + read(p: Uint8Array): Promise<number | Deno.EOF>; } export interface SyncReader { - readSync(p: Uint8Array): number | EOF; + readSync(p: Uint8Array): number | Deno.EOF; } export interface Writer { /** Writes `p.byteLength` bytes from `p` to the underlying data @@ -2387,7 +2385,7 @@ declare namespace fetchTypes { formData(): Promise<domTypes.FormData>; json(): Promise<any>; text(): Promise<string>; - read(p: Uint8Array): Promise<number | io.EOF>; + read(p: Uint8Array): Promise<number | Deno.EOF>; close(): void; cancel(): Promise<void>; getReader(): domTypes.ReadableStreamReader; |