Skip to content

Functions: asUrlString()

ts
function asUrlString(value): UrlString;

Converts a string to a valid URL.

Parameters

ParameterTypeDescription
valuestringThe string to convert.

Returns

UrlString

The valid URL.