Merge pull request #3800 from reppners/node

+ added missing typings to node path module including tests
This commit is contained in:
Masahiro Wakame
2015-03-05 23:20:29 +09:00
2 changed files with 153 additions and 0 deletions
+13
View File
@@ -1000,14 +1000,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" {