Hyperlinkv0.8.0-beta.28

Schema

Schema.isLessThanOrEqualToBigIntconsteffect/Schema.ts:7860
(
  maximum: bigint,
  annotations?: Annotations.Filter
): SchemaAST.Filter<bigint>

Validates that a BigInt is less than or equal to the specified value (inclusive).

Details

Arbitrary:

When generating test data with fast-check, this applies a max constraint to ensure generated BigInt values are less than or equal to the specified value.

BigInt checks
Source effect/Schema.ts:78609 lines
export const isLessThanOrEqualToBigInt = makeIsLessThanOrEqualTo({
  order: Order.BigInt,
  annotate: (maximum) => ({
    meta: {
      _tag: "isLessThanOrEqualToBigInt",
      maximum
    }
  })
})
Referenced by 1 symbols