Aller au contenu principal

bigint()

bigint(message?): BigIntConstraint

BigInt schema with 0 overhead after tsup + Terser build.

Usage identical to before:

  • bigint()
  • bigint("Custom error")
  • bigint().min(5n)
  • bigint().positive()

Parameters

message?: string

Custom error message (optional).


Returns: BigIntConstraint

BigIntSchema with all constraints.


Since

2.0.0