Package: effect
Module: Filter
A predefined filter that only passes through bigint primitive values.
When to use
Use to keep primitive big integer values from unknown input while staying in
the composable Filter / Result pipeline.
Details
Implemented with fromPredicate(Predicate.isBigInt), so values where
typeof input === "bigint" succeed and all other inputs fail with the
original input.
Gotchas
This filter does not coerce numbers or strings; 1n passes while 1 fails.
See
number for JavaScript number valuesPredicate.isBigInt for the underlying guardSignature
declare const bigint: Filter<unknown, bigint, unknown>
Since v4.0.0