effect-io-ai

Package: effect
Module: HashRing

HashRing.isHashRing

Checks whether a value is a HashRing.

When to use

Use to narrow an unknown value before treating it as a HashRing, such as values crossing an untyped boundary.

Details

The guard checks for the module’s internal TypeId property and narrows to HashRing<any>.

Gotchas

This is a structural type-id check; it does not validate the ring’s nodes, ring, or weight state.

See

Signature

declare const isHashRing: (u: unknown) => u is HashRing<any>

Source

Since v3.19.0