mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-15 07:36:18 +00:00
23 lines
816 B
TypeScript
23 lines
816 B
TypeScript
|
/**
|
||
|
* Tests if the specified path is absolute.
|
||
|
* @param {string} path Path to test
|
||
|
* @returns {boolean} `true` if path is absolute
|
||
|
*/
|
||
|
export function isAbsolute(path: string): boolean;
|
||
|
|
||
|
/**
|
||
|
* Normalizes the specified path.
|
||
|
* @param {string} path Path to normalize
|
||
|
* @returns {string} Normalized path
|
||
|
*/
|
||
|
export function normalize(path: string): string;
|
||
|
|
||
|
/**
|
||
|
* Resolves the specified include path against the specified origin path.
|
||
|
* @param {string} originPath Path to the origin file
|
||
|
* @param {string} includePath Include path relative to origin path
|
||
|
* @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized
|
||
|
* @returns {string} Path to the include file
|
||
|
*/
|
||
|
export function resolve(originPath: string, includePath: string, alreadyNormalized?: boolean): string;
|