UrlString is used for strings that are guaranteed/presumed to be absolute URLs.
It is intended to avoid accidentally passing a relative URL to a function that expects an
absolute URL. Type assertions may be required in cases where a string is known to be an absolute
URL. For example: document.URL as UrlString.
UrlString is used for strings that are guaranteed/presumed to be absolute URLs.
It is intended to avoid accidentally passing a relative URL to a function that expects an absolute URL. Type assertions may be required in cases where a string is known to be an absolute URL. For example:
document.URL as UrlString
.