diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-11-26 00:40:57 -0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-11-26 00:40:57 -0800 |
commit | f88dc4e197f36842b13843dd88da3d74d67578e5 (patch) | |
tree | b74a0da664bf0c126c345efa73815ea96db0b70b /cli/js/lib.deno_runtime.d.ts | |
parent | 658ec2aaf9c7e0d0b4ded4e97a3d89dc2fa25806 (diff) |
Add Deno.realpath (#3404)
Diffstat (limited to 'cli/js/lib.deno_runtime.d.ts')
-rw-r--r-- | cli/js/lib.deno_runtime.d.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/js/lib.deno_runtime.d.ts b/cli/js/lib.deno_runtime.d.ts index 3fdc28a54..fb7767aa6 100644 --- a/cli/js/lib.deno_runtime.d.ts +++ b/cli/js/lib.deno_runtime.d.ts @@ -605,6 +605,21 @@ declare namespace Deno { isSymlink(): boolean; } + // @url js/realpath.d.ts + + /** Returns absolute normalized path with symbolic links resolved + * synchronously. + * + * const realPath = Deno.realpathSync("./some/path"); + */ + export function realpathSync(path: string): string; + + /** Returns absolute normalized path with symbolic links resolved. + * + * const realPath = await Deno.realpath("./some/path"); + */ + export function realpath(path: string): Promise<string>; + // @url js/read_dir.d.ts /** Reads the directory given by path and returns a list of file info |