mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #3800 from reppners/node
+ added missing typings to node path module including tests
This commit is contained in:
Vendored
+13
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user