Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/arktype/utils/numericLiterals.ts>wellFormedIntegerMatcher

TypeScript's 1:1 validator, optimized from editor to runtime
Latest
variable wellFormedIntegerMatcher
import { wellFormedIntegerMatcher } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/numericLiterals.ts";

Matches a well-formatted integer according to the following rules:

  1. Must begin with an integer, the first digit of which cannot be 0 unless the entire value is 0
  2. The value may not be "-0"

type

RegExp