@lonu/stc
Version:
A tool for converting OpenApi/Swagger/Apifox into code.
17 lines • 491 B
TypeScript
/**
* Verifies whether provided path is absolute.
*
* @example Usage
* ```ts
* import { isAbsolute } from "@std/path/windows/is-absolute";
* import { assert, assertFalse } from "@std/assert";
*
* assert(isAbsolute("C:\\foo\\bar"));
* assertFalse(isAbsolute("..\\baz"));
* ```
*
* @param path The path to verify.
* @returns `true` if the path is absolute, `false` otherwise.
*/
export declare function isAbsolute(path: string): boolean;
//# sourceMappingURL=is_absolute.d.ts.map