@metreeca/blue - v0.12.0
    Preparing search index...

    Function url

    • Creates a shape for hierarchical URL values.

      Fixes the datatype to xsd:string and admits only URLs with a scheme and an authority component (for example, https://example.net/path), as iri does with variant: "hierarchical" and under the same limitation: the scheme and the leading slashes are checked, the rest of the URL is not.

      Type Parameters

      Parameters

      Returns StringShape<{ inferred from <C> }>

      An immutable shape admitting hierarchical URLs, narrowed to the values the constraints enumerate

      TraceError Where the stated constraints contradict one another