refineBigInt()
refineBigInt(
schema,refinement):BigIntSchema
Adds a refinement to a bigint schema. Preserves coercion from the base schema. Returns a base BigIntSchema - the caller is responsible for adding constraints.
Parameters
schema: BigIntSchema | BigIntConstraint
refinement: (value) => string | true
Returns: BigIntSchema
Since
2.0.0