diff options
author | William Perron <hey@wperron.io> | 2020-11-23 16:11:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 22:11:56 +0100 |
commit | 266925d772527c9ba5fbc094e67cade31fc35a47 (patch) | |
tree | 06187faa63b4ebceddc47daab129b5f9fc5f2024 /cli/dts/lib.deno.ns.d.ts | |
parent | 46850918e7e6215cc56e163ae4a42c49cd05b446 (diff) |
fix(cli): add file URL support for Deno.readLink (#8423)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<string>; + export function readLink(path: string | URL): Promise<string>; /** 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 |