introduce unstable flag, make a few things unstable (#4892)

This commit is contained in:
Ryan Dahl 2020-04-25 09:31:54 -04:00 committed by GitHub
parent b28e60ecaf
commit 0c47cd6785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 49 additions and 0 deletions

View file

@ -1561,6 +1561,8 @@ declare namespace Deno {
export function linkSync(oldpath: string, newpath: string): void;
/** Creates `newpath` as a hard link to `oldpath`.
*
* **UNSTABLE**: needs security review.
*
* await Deno.link("old/name", "new/name");
*
@ -1568,6 +1570,8 @@ declare namespace Deno {
export function link(oldpath: string, newpath: string): Promise<void>;
/** **UNSTABLE**: `type` argument type may be changed to `"dir" | "file"`.
*
* **UNSTABLE**: needs security review.
*
* Creates `newpath` as a symbolic link to `oldpath`.
*
@ -1586,6 +1590,8 @@ declare namespace Deno {
): void;
/** **UNSTABLE**: `type` argument may be changed to `"dir" | "file"`
*
* **UNSTABLE**: needs security review.
*
* Creates `newpath` as a symbolic link to `oldpath`.
*