+ added missing typings to node path module including tests

This commit is contained in:
reppners
2015-03-05 11:19:07 +01:00
parent 0acdbea7fd
commit 6bfdd921c1
2 changed files with 153 additions and 0 deletions
+13
View File
@@ -953,14 +953,27 @@ declare module "fs" {
}
declare module "path" {
export interface ParsedPath {
root: string;
dir: string;
base: string;
ext: string;
name: string;
}
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
export function isAbsolute(p: string): boolean;
export function relative(from: string, to: string): string;
export function dirname(p: string): string;
export function basename(p: string, ext?: string): string;
export function extname(p: string): string;
export var sep: string;
export var delimiter: string;
export function parse(p: string): ParsedPath;
export function format(pP: ParsedPath): string;
}
declare module "string_decoder" {