bigint
Learn about the available options, methods and use cases.
Usage
import e from "validator";
await e.bigint(
{} // Optionally pass options
)
.validate(1n) // returns 1nOptions
interface IBigIntValidatorOptions extends TBaseValidatorOptions {
/** Pass custom messages for the errors */
messages?: Partial<Record<"typeError", TErrorMessage>>;
}Examples
Case 1 (Using validator options)
Last updated