mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
9 lines
265 B
TypeScript
9 lines
265 B
TypeScript
/// <reference path="./is-url.d.ts" />
|
|
|
|
import isUrl = require('is-url');
|
|
|
|
var isValid0: boolean = isUrl('https://github.com/segmentio/is-url');
|
|
var isValid1: boolean = isUrl('hogepiyo');
|
|
var isValid2: boolean = isUrl('');
|
|
var isValid3: boolean = isUrl(undefined);
|