diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-28 17:40:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:40:43 -0400 |
commit | 678313b17677e012ba9a07aeca58af1aafbf4e8c (patch) | |
tree | e48e25b165a7d6d566095442448f2e36fa09c561 /cli/js/files.ts | |
parent | 47c2f034e95696a47770d60aec1362501e7f330d (diff) |
BREAKING: Remove Deno.EOF, use null instead (#4953)
Diffstat (limited to 'cli/js/files.ts')
-rw-r--r-- | cli/js/files.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cli/js/files.ts b/cli/js/files.ts index 46d6c8a85..d6df8bad0 100644 --- a/cli/js/files.ts +++ b/cli/js/files.ts @@ -1,6 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { - EOF, Reader, Writer, Seeker, @@ -76,11 +75,11 @@ export class File return writeSync(this.rid, p); } - read(p: Uint8Array): Promise<number | EOF> { + read(p: Uint8Array): Promise<number | null> { return read(this.rid, p); } - readSync(p: Uint8Array): number | EOF { + readSync(p: Uint8Array): number | null { return readSync(this.rid, p); } @@ -103,11 +102,11 @@ class Stdin implements Reader, ReaderSync, Closer { this.rid = 0; } - read(p: Uint8Array): Promise<number | EOF> { + read(p: Uint8Array): Promise<number | null> { return read(this.rid, p); } - readSync(p: Uint8Array): number | EOF { + readSync(p: Uint8Array): number | null { return readSync(this.rid, p); } |