mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
stabilize Deno.cwd and require --allow-read (#5068)
This commit is contained in:
parent
191c59a591
commit
6c02b061ce
8 changed files with 23 additions and 59 deletions
15
cli/js/lib.deno.unstable.d.ts
vendored
15
cli/js/lib.deno.unstable.d.ts
vendored
|
@ -1024,21 +1024,6 @@ declare namespace Deno {
|
|||
options: ConnectOptions | UnixConnectOptions
|
||||
): Promise<Conn>;
|
||||
|
||||
/**
|
||||
* **UNSTABLE**: Currently under evaluation to decide if explicit permission is
|
||||
* required to get the value of the current working directory.
|
||||
*
|
||||
* Return a string representing the current working directory.
|
||||
*
|
||||
* If the current directory can be reached via multiple paths (due to symbolic
|
||||
* links), `cwd()` may return any one of them.
|
||||
*
|
||||
* const currentWorkingDirectory = Deno.cwd();
|
||||
*
|
||||
* Throws `Deno.errors.NotFound` if directory not available.
|
||||
*/
|
||||
export function cwd(): string;
|
||||
|
||||
export interface StartTlsOptions {
|
||||
/** A literal IP address or host name that can be resolved to an IP address.
|
||||
* If not specified, defaults to `127.0.0.1`. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue