mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
25 lines
443 B
TypeScript
25 lines
443 B
TypeScript
/// <reference path="valid-url.d.ts"/>
|
|
|
|
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();
|