MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeBigIntConstraints

Function makeBigIntConstraints

packages/effect/src/Arbitrary.ts:141–156  ·  view source on GitHub ↗
(options: {
  readonly min?: bigint | undefined
  readonly max?: bigint | undefined
})

Source from the content-addressed store, hash-verified

139
140/** @internal */
141export const makeBigIntConstraints = (options: {
142 readonly min?: bigint | undefined
143 readonly max?: bigint | undefined
144}): BigIntConstraints => {
145 const out: Types.Mutable<BigIntConstraints> = {
146 _tag: "BigIntConstraints",
147 constraints: {}
148 }
149 if (Predicate.isBigInt(options.min)) {
150 out.constraints.min = options.min
151 }
152 if (Predicate.isBigInt(options.max)) {
153 out.constraints.max = options.max
154 }
155 return out
156}
157
158interface ArrayConstraints {
159 readonly _tag: "ArrayConstraints"

Callers 2

Arbitrary.tsFile · 0.85
mergeBigIntConstraintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…