From 266925d772527c9ba5fbc094e67cade31fc35a47 Mon Sep 17 00:00:00 2001 From: William Perron Date: Mon, 23 Nov 2020 16:11:56 -0500 Subject: fix(cli): add file URL support for Deno.readLink (#8423) --- cli/dts/lib.deno.ns.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 66718ea67..e42fb855d 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -1491,7 +1491,7 @@ declare namespace Deno { * Throws TypeError if called with a hard link * * Requires `allow-read` permission. */ - export function readLinkSync(path: string): string; + export function readLinkSync(path: string | URL): string; /** Resolves to the full path destination of the named symbolic link. * @@ -1503,7 +1503,7 @@ declare namespace Deno { * Throws TypeError if called with a hard link * * Requires `allow-read` permission. */ - export function readLink(path: string): Promise; + export function readLink(path: string | URL): Promise; /** Resolves to a `Deno.FileInfo` for the specified `path`. If `path` is a * symlink, information for the symlink will be returned instead of what it -- cgit v1.2.3