summaryrefslogtreecommitdiff
path: root/cli/js/net.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/net.ts')
-rw-r--r--cli/js/net.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/net.ts b/cli/js/net.ts
index 6f6736ee2..3ca1219e6 100644
--- a/cli/js/net.ts
+++ b/cli/js/net.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { errors } from "./errors.ts";
-import { EOF, Reader, Writer, Closer } from "./io.ts";
+import { Reader, Writer, Closer } from "./io.ts";
import { read, write } from "./ops/io.ts";
import { close } from "./ops/resources.ts";
import * as netOps from "./ops/net.ts";
@@ -40,7 +40,7 @@ export class ConnImpl implements Conn {
return write(this.rid, p);
}
- read(p: Uint8Array): Promise<number | EOF> {
+ read(p: Uint8Array): Promise<number | null> {
return read(this.rid, p);
}