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

Last change on this file since e29cc2e 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.