From 201185f9fb05c2cc1ab5304abeb04191f9337ab6 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sun, 25 Apr 2021 00:48:43 +0200 Subject: [PATCH] fix(cli/dts): sleepSync doesn't return a Promise (#10358) Per its name its synchronous for the current thread --- cli/dts/lib.deno.unstable.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 8d4c1f87d7..908c433bfe 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1124,7 +1124,7 @@ declare namespace Deno { * Deno.sleepSync(10); * ``` */ - export function sleepSync(millis: number): Promise; + export function sleepSync(millis: number): void; export interface Metrics extends OpMetrics { ops: Record;