feat(runtime): support URL overloads for Deno.symlink and Deno.symlinkSync (#10664)

This commit is contained in:
Casper Beyer 2021-06-03 22:16:00 +08:00 committed by GitHub
parent dc69b03339
commit ece56d9935
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 56 additions and 7 deletions

View file

@ -2379,8 +2379,8 @@ declare namespace Deno {
*
* Requires `allow-write` permission. */
export function symlinkSync(
oldpath: string,
newpath: string,
oldpath: string | URL,
newpath: string | URL,
options?: SymlinkOptions,
): void;
@ -2396,8 +2396,8 @@ declare namespace Deno {
*
* Requires `allow-write` permission. */
export function symlink(
oldpath: string,
newpath: string,
oldpath: string | URL,
newpath: string | URL,
options?: SymlinkOptions,
): Promise<void>;