@metreeca/core - v0.9.17
    Preparing search index...

    Type Alias Variant

    Variant: "absolute" | "internal" | "relative"

    Identifier variant per RFC 3986 §§ 4.2-4.3.

    • "absolute": Contains scheme (e.g., http://example.org/path, urn:example:resource)
    • "internal": Root-relative path starting with / (e.g., /path)
    • "relative": Reference without scheme (e.g., ../path, path)

    The "internal" variant is a project-specific subset of relative references, not formally defined in RFC 3986.

    For opaque URIs (e.g., urn:, mailto:), reference operations adapt their behavior:

    • resolve: Throws RangeError for relative references (no standard resolution)
    • internalize: Returns scheme-specific part if schemes match (e.g., example:resource from urn:)
    • relativize: Returns scheme-specific part if schemes match