Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
23 lines
653 B
Plaintext
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;
|