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

    Function optional

    • Creates a SetShape for at most one value (0..1).

      Allows zero or one value, resulting in an optional scalar type (undefined | V).

      Warning

      For dictionary shapes, each tag in the map holds a single string. minCount/maxCount apply per tag, not as an aggregate across all tags. This differs from vanilla SHACL aggregate counting, though expressible via per-tag property shapes.

      Type Parameters

      Parameters

      Returns SetShape<S, undefined, 1>

      An immutable SetShape with no minimum count and maxCount=1