UNPKG

@lonu/stc

Version:

A tool for converting OpenApi/Swagger/Apifox into code.

17 lines 490 B
/** * Verifies whether provided path is absolute. * * @example Usage * ```ts * import { isAbsolute } from "@std/path/posix/is-absolute"; * import { assert, assertFalse } from "@std/assert"; * * assert(isAbsolute("/home/user/Documents/")); * assertFalse(isAbsolute("home/user/Documents/")); * ``` * * @param path The path to verify. * @returns Whether the path is absolute. */ export declare function isAbsolute(path: string): boolean; //# sourceMappingURL=is_absolute.d.ts.map