Rename is.url to is.urlString

This commit is contained in:
Itai Steinherz 2018-12-13 14:10:02 +02:00
parent 599eb7fd34
commit e6de3f9002
No known key found for this signature in database
GPG key ID: BE977733D203B00A
2 changed files with 7 additions and 7 deletions

View file

@ -190,7 +190,7 @@ namespace is { // tslint:disable-line:no-namespace
export const directInstanceOf = <T>(instance: unknown, klass: Class<T>): instance is T => Object.getPrototypeOf(instance) === klass.prototype;
export const urlInstance = (value: unknown): value is URL => isObjectOfType<URL>(TypeName.URL)(value);
export const url = (value: unknown) => {
export const urlString = (value: unknown) => {
if (!string(value)) {
return false;
}