mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
405 B
TypeScript
23 lines
405 B
TypeScript
import validUrl = require('valid-url');
|
|
|
|
function testIsUri() {
|
|
validUrl.isUri("https://github.com/");
|
|
}
|
|
|
|
function testIsHttpUri() {
|
|
validUrl.isHttpUri("https://github.com/");
|
|
}
|
|
|
|
function testIsHttpsUri() {
|
|
validUrl.isHttpsUri("https://github.com/");
|
|
}
|
|
|
|
function testIsWebUri() {
|
|
validUrl.isWebUri("https://github.com/");
|
|
}
|
|
|
|
testIsUri();
|
|
testIsHttpUri();
|
|
testIsHttpsUri();
|
|
testIsWebUri();
|