@grafctory/blue - v0.17.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 absolute path, authority optional (for example, https://example.net/path or base:/path), as iri does with variant: "hierarchical" and under the same limitation: only the scheme and the leading slash are checked. Page addresses a browser can open take iri with variant: "browsable" instead, which admits only HTTP and HTTPS links.

      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