mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat(runtime): support URL overloads for Deno.symlink
and Deno.symlinkSync
(#10664)
This commit is contained in:
parent
dc69b03339
commit
ece56d9935
3 changed files with 56 additions and 7 deletions
8
cli/dts/lib.deno.ns.d.ts
vendored
8
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue