summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorKermit Xuan <kermitlx@outlook.com>2020-06-13 22:14:31 +0800
committerGitHub <noreply@github.com>2020-06-13 10:14:31 -0400
commit77545219a6d5c9d474032ea5e8ccfcd69897d76b (patch)
tree17c9a2b1486507066952423e375ad3bc2600b004 /cli/js/lib.deno.unstable.d.ts
parentf6fa65938437385a4ec00ec090f797381f6638b7 (diff)
fix: DatagramConn.send should return bytes sent (#6265)
Diffstat (limited to 'cli/js/lib.deno.unstable.d.ts')
-rw-r--r--cli/js/lib.deno.unstable.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/lib.deno.unstable.d.ts b/cli/js/lib.deno.unstable.d.ts
index dc50416fc..0a80eb2c6 100644
--- a/cli/js/lib.deno.unstable.d.ts
+++ b/cli/js/lib.deno.unstable.d.ts
@@ -988,7 +988,7 @@ declare namespace Deno {
/** UNSTABLE: new API, yet to be vetted.
*
* Sends a message to the target. */
- send(p: Uint8Array, addr: Addr): Promise<void>;
+ send(p: Uint8Array, addr: Addr): Promise<number>;
/** UNSTABLE: new API, yet to be vetted.
*
* Close closes the socket. Any pending message promises will be rejected