summaryrefslogtreecommitdiff
path: root/js/net.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/net.ts')
-rw-r--r--js/net.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/net.ts b/js/net.ts
index 7bf6dc098..f1470b86e 100644
--- a/js/net.ts
+++ b/js/net.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { ReadResult, Reader, Writer, Closer } from "./io";
+import { EOF, Reader, Writer, Closer } from "./io";
import * as msg from "gen/cli/msg_generated";
import { assert, notImplemented } from "./util";
import * as dispatch from "./dispatch";
@@ -55,7 +55,7 @@ class ConnImpl implements Conn {
return write(this.rid, p);
}
- read(p: Uint8Array): Promise<ReadResult> {
+ read(p: Uint8Array): Promise<number | EOF> {
return read(this.rid, p);
}