Hyperlinkv0.8.0-beta.28

Schema

Schema.isLessThanBigIntconsteffect/Schema.ts:7835
(
  exclusiveMaximum: bigint,
  annotations?: Annotations.Filter
): SchemaAST.Filter<bigint>

Validates that a BigInt is less than the specified value (exclusive).

Details

Arbitrary:

When generating test data with fast-check, this applies a max constraint of exclusiveMaximum - 1n to ensure generated BigInts are less than the specified value.

BigInt checks
Source effect/Schema.ts:78359 lines
export const isLessThanBigInt = makeIsLessThan({
  order: Order.BigInt,
  annotate: (exclusiveMaximum) => ({
    meta: {
      _tag: "isLessThanBigInt",
      exclusiveMaximum
    }
  })
})
Referenced by 1 symbols