mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-28 10:30:31 +00:00
8 lines
226 B
TypeScript
8 lines
226 B
TypeScript
|
|
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);
|