source: trip-planner-front/node_modules/is-absolute-url/index.d.ts@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 363 bytes
Line 
1/**
2Check if a URL is absolute.
3
4@param url - The URL to check.
5
6@example
7```
8import isAbsoluteUrl = require('is-absolute-url');
9
10isAbsoluteUrl('http://sindresorhus.com/foo/bar');
11//=> true
12
13isAbsoluteUrl('//sindresorhus.com');
14//=> false
15
16isAbsoluteUrl('foo/bar');
17//=> false
18```
19*/
20declare function isAbsoluteUrl(url: string): boolean;
21
22export = isAbsoluteUrl;
Note: See TracBrowser for help on using the repository browser.