assertURI()function

assertURI(value: unknown, caller: AnyCaller = assertURI): asserts value is ImmutableURI
ParamType
valueunknown
The value to assert. required
callerAnyCaller
Function to attribute a thrown error to (defaults to assertURI itself). Defaults to assertURI
Return
asserts value is ImmutableURI
Throws
RequiredError
If value is not a URI object.

Assert that an unknown value is a URI object.