mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Always use forceConsistentCasingInFileNames * Rename files * Convert more packages to `types-2.0` style
23 lines
403 B
TypeScript
23 lines
403 B
TypeScript
import validUrl = require('valid-url');
|
|
|
|
function testIsUri() {
|
|
validUrl.isUri("http://github.com/");
|
|
}
|
|
|
|
function testIsHttpUri() {
|
|
validUrl.isHttpUri("http://github.com/");
|
|
}
|
|
|
|
function testIsHttpsUri() {
|
|
validUrl.isHttpsUri("https://github.com/");
|
|
}
|
|
|
|
function testIsWebUri() {
|
|
validUrl.isWebUri("https://github.com/");
|
|
}
|
|
|
|
testIsUri();
|
|
testIsHttpUri();
|
|
testIsHttpsUri();
|
|
testIsWebUri();
|