Skip to content
Permalink
Newer
Older
100644 25 lines (25 sloc) 790 Bytes
Ignoring revisions in .git-blame-ignore-revs.
August 18, 2022 19:57
1
/**
2
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
3
* replaced with /.
4
*
5
* @param pth. Path to transform.
6
* @return string Posix path.
7
*/
8
export declare function toPosixPath(pth: string): string;
9
/**
10
* toWin32Path converts the given path to the win32 form. On Linux, / will be
11
* replaced with \\.
12
*
13
* @param pth. Path to transform.
14
* @return string Win32 path.
15
*/
16
export declare function toWin32Path(pth: string): string;
17
/**
18
* toPlatformPath converts the given path to a platform-specific path. It does
19
* this by replacing instances of / and \ with the platform-specific path
20
* separator.
21
*
22
* @param pth The path to platformize.
23
* @return string The platform-specific path.
24
*/
25
export declare function toPlatformPath(pth: string): string;