From 330cd6b7ea46524783e5d1a8654153b459931cd7 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Tue, 1 Jun 2021 02:05:57 +0800 Subject: feat(cli): support URL overloads for `Deno.utime` and `Deno.utimeSync` (#10792) --- cli/dts/lib.deno.unstable.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/dts/lib.deno.unstable.d.ts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 0e5453554..f6e8aefd2 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -766,7 +766,7 @@ declare namespace Deno { * * Requires `allow-write` permission. */ export function utimeSync( - path: string, + path: string | URL, atime: number | Date, mtime: number | Date, ): void; @@ -783,7 +783,7 @@ declare namespace Deno { * * Requires `allow-write` permission. */ export function utime( - path: string, + path: string | URL, atime: number | Date, mtime: number | Date, ): Promise; -- cgit v1.2.3