From 79dc2f4c3555741dc2d9a750cd182b60f6d05129 Mon Sep 17 00:00:00 2001 From: basarat Date: Sun, 4 Aug 2013 16:07:49 +1000 Subject: [PATCH] path.resolve It can take a single "to" parameter : http://nodejs.org/docs/latest/api/path.html#path_path_resolve_from_to and in fact that is *the* way you get "Absolute paths" in node --- node/node.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/node/node.d.ts b/node/node.d.ts index dfcbee7b79..eb0689489a 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -808,6 +808,7 @@ declare module "fs" { declare module "path" { export function normalize(p: string): string; export function join(...paths: any[]): string; + export function resolve(to: string); export function resolve(from: string, to: string): string; export function resolve(from: string, from2: string, to: string): string; export function resolve(from: string, from2: string, from3: string, to: string): string;