Hyperlinkv0.8.0-beta.28

Pool

Pool.isPoolconsteffect/Pool.ts:190
(u: unknown): u is Pool<unknown, unknown>

Returns true if the specified value is a Pool, false otherwise.

When to use

Use to validate unknown values at runtime boundaries before treating them as Pool values.

Details

This predicate narrows the input to Pool<unknown, unknown>.

refinements
Source effect/Pool.ts:1901 lines
export const isPool = (u: unknown): u is Pool<unknown, unknown> => hasProperty(u, TypeId)