(options: {
readonly min?: bigint | undefined
readonly max?: bigint | undefined
})
| 139 | |
| 140 | /** @internal */ |
| 141 | export 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 | |
| 158 | interface ArrayConstraints { |
| 159 | readonly _tag: "ArrayConstraints" |
no outgoing calls
no test coverage detected
searching dependent graphs…