summaryrefslogtreecommitdiff
path: root/cli/dts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-04-13 12:41:47 +0100
committerGitHub <noreply@github.com>2021-04-13 07:41:47 -0400
commitdf49a8462caf1cf4eea5c9f386322dae5e14dc4f (patch)
tree87ee3f97e46a879bdffab3d85e6526d4450abe23 /cli/dts
parenta8057e3e06962a8d7c6330a085704bb4493eed04 (diff)
fix(cli/dts): Make respondWith() return a Promise (#10128)
Diffstat (limited to 'cli/dts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 54869e15a..f7ed18780 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1158,7 +1158,7 @@ declare namespace Deno {
export interface RequestEvent {
readonly request: Request;
- respondWith(r: Response | Promise<Response>): void;
+ respondWith(r: Response | Promise<Response>): Promise<void>;
}
export interface HttpConn extends AsyncIterable<RequestEvent> {