summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno_runtime.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/lib.deno_runtime.d.ts')
-rw-r--r--cli/js/lib.deno_runtime.d.ts15
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