aswi2020vldc-gitlab/templetes/node_modules/is-absolute-url/index.d.ts @ 78a2184f
1 |
/**
|
---|---|
2 |
Check if a URL is absolute.
|
3 |
|
4 |
@param url - The URL to check.
|
5 |
|
6 |
@example
|
7 |
```
|
8 |
import isAbsoluteUrl = require('is-absolute-url');
|
9 |
|
10 |
isAbsoluteUrl('http://sindresorhus.com/foo/bar');
|
11 |
//=> true
|
12 |
|
13 |
isAbsoluteUrl('//sindresorhus.com');
|
14 |
//=> false
|
15 |
|
16 |
isAbsoluteUrl('foo/bar');
|
17 |
//=> false
|
18 |
```
|
19 |
*/
|
20 |
declare function isAbsoluteUrl(url: string): boolean; |
21 |
|
22 |
export = isAbsoluteUrl; |