From f51dcc12d7a75a677529d63eb53d7a577d5b9289 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 16 Oct 2019 19:39:33 +0100 Subject: std: Move fs/path to the top-level (#3100) --- std/path/interface.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 std/path/interface.ts (limited to 'std/path/interface.ts') diff --git a/std/path/interface.ts b/std/path/interface.ts new file mode 100644 index 000000000..b31c89ea7 --- /dev/null +++ b/std/path/interface.ts @@ -0,0 +1,27 @@ +/** + * A parsed path object generated by path.parse() or consumed by path.format(). + */ +export interface ParsedPath { + /** + * The root of the path such as '/' or 'c:\' + */ + root: string; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir: string; + /** + * The file name including extension (if any) such as 'index.html' + */ + base: string; + /** + * The file extension (if any) such as '.html' + */ + ext: string; + /** + * The file name without extension (if any) such as 'index' + */ + name: string; +} + +export type FormatInputPathObject = Partial; -- cgit v1.2.3