ImmutableURIConstructorinterface
{
new (input: URIString | ImmutableURI): ImmutableURI;
}Construct a correctly-typed URI object.
- This is a more correctly typed version of the builtin Javascript
URLconstructor. - Takes a URI string or URI object that already encodes a complete URI — no base parameter, so relative inputs are not accepted.
- To resolve a relative input against a base, use
getBasedURI()fromurl.ts.