Files
SnowLuma/.pnpm-store/v11/files/a2/1fb7ace18cc736bf451ae0203e455632dc2fccc8eaf6e6267790b0e812c42921f8b0b170705289f8973107151da4722cc5a5ba056ea8ce605a51aa286cfe3b
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

23 lines
653 B
Plaintext

/**
* Checks if `url` is an absolute URL.
*
* 校验是否是绝对URL
*
* @example
* ```js
* import { isAbsoluteURL } from 'is-what-type';
*
* isAbsoluteURL('https://example.com'); // true
* isAbsoluteURL('/foo/bar'); // false
* isAbsoluteURL('ftp://example.com'); // true
* isAbsoluteURL('mailto:foo@bar.com'); // true
* isAbsoluteURL('file:///usr/bin/myfile'); // true
* isAbsoluteURL('//example.com'); // true
* isAbsoluteURL('example.com'); // false
* ```
*
* @param value - The value to check.
* @returns `true` if the value is an absolute URL, `false` otherwise.
*/
export declare function isAbsoluteURL(value: any): boolean;