Skip to main content
Module

x/scaffold/src/deps/types.ts>NegativeInteger

scaffold your next project with style and 💗
Latest
type alias NegativeInteger
import { type NegativeInteger } from "https://deno.land/x/scaffold@0.3.0/src/deps/types.ts";

A negative (-∞ < x < 0) number that is an integer. Equivalent to Negative<Integer<T>>.

You can't pass a bigint as they are already guaranteed to be integers, instead use Negative<T>.

Use-case: Validating and documenting parameters.

Type Parameters

T extends number
definition: Negative<Integer<T>>