Numeric.ts
Numeric overview
Table of contents
- arbitrary
- constructors
- model
- schemas
- utils
- INT16_MAX
- INT16_MIN
- INT32_MAX
- INT32_MIN
- INT64_MAX
- INT64_MIN
- INT8_MAX
- INT8_MIN
- Int16
- Int16 (type alias)
- Int16Generator
- Int32
- Int32 (type alias)
- Int32Generator
- Int64
- Int64 (type alias)
- Int64Generator
- Int8
- Int8 (type alias)
- Int8Generator
- UINT16_MAX
- UINT16_MIN
- UINT32_MAX
- UINT32_MIN
- UINT64_MAX
- UINT64_MIN
- UINT8_MAX
- UINT8_MIN
- Uint16 (type alias)
- Uint16Arbitrary
- Uint16Schema
- Uint32 (type alias)
- Uint32Arbitrary
- Uint32Schema
- Uint64 (type alias)
- Uint64Arbitrary
- Uint64Schema
arbitrary
Uint8Generator
FastCheck arbitrary for generating random Uint8 instances.
Signature
export declare const Uint8Generator: FastCheck.Arbitrary<bigint>Added in v2.0.0
constructors
Int16Make
Smart constructor for Int16 that validates and applies branding.
Signature
export declare const Int16Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
Int32Make
Smart constructor for Int32 that validates and applies branding.
Signature
export declare const Int32Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
Int64Make
Smart constructor for Int64 that validates and applies branding.
Signature
export declare const Int64Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
Int8Make
Smart constructor for Int8 that validates and applies branding.
Signature
export declare const Int8Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
Uint16Make
Smart constructor for Uint16 that validates and applies branding.
Signature
export declare const Uint16Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
Uint32Make
Smart constructor for Uint32 that validates and applies branding.
Signature
export declare const Uint32Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
Uint64Make
Smart constructor for Uint64 that validates and applies branding.
Signature
export declare const Uint64Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
Uint8Make
Smart constructor for Uint8 that validates and applies branding.
Signature
export declare const Uint8Make: (a: bigint, options?: Schema.MakeOptions) => bigintAdded in v2.0.0
model
Uint8 (type alias)
Type alias for 8-bit unsigned integers.
Signature
export type Uint8 = typeof Uint8Schema.TypeAdded in v2.0.0
schemas
NonNegativeInteger
Schema for non-negative integers (unbounded).
Signature
export declare const NonNegativeInteger: Schema.refine<bigint, typeof Schema.BigInt>Added in v2.0.0
Uint8Schema
Schema for 8-bit unsigned integers.
Signature
export declare const Uint8Schema: Schema.refine<bigint, typeof Schema.BigInt>Added in v2.0.0
utils
INT16_MAX
Signature
export declare const INT16_MAX: 32767nINT16_MIN
Signature
export declare const INT16_MIN: -32768nINT32_MAX
Signature
export declare const INT32_MAX: 2147483647nINT32_MIN
Signature
export declare const INT32_MIN: -2147483648nINT64_MAX
Signature
export declare const INT64_MAX: 9223372036854775807nINT64_MIN
Signature
export declare const INT64_MIN: -9223372036854775808nINT8_MAX
Signature
export declare const INT8_MAX: 127nINT8_MIN
Signature
export declare const INT8_MIN: -128nInt16
Signature
export declare const Int16: Schema.refine<bigint, typeof Schema.BigInt>Int16 (type alias)
Signature
export type Int16 = typeof Int16.TypeInt16Generator
Signature
export declare const Int16Generator: FastCheck.Arbitrary<bigint>Int32
Signature
export declare const Int32: Schema.refine<bigint, typeof Schema.BigInt>Int32 (type alias)
Signature
export type Int32 = typeof Int32.TypeInt32Generator
Signature
export declare const Int32Generator: FastCheck.Arbitrary<bigint>Int64
Signature
export declare const Int64: Schema.refine<bigint, typeof Schema.BigInt>Int64 (type alias)
Signature
export type Int64 = typeof Int64.TypeInt64Generator
Signature
export declare const Int64Generator: FastCheck.Arbitrary<bigint>Int8
Signature
export declare const Int8: Schema.refine<bigint, typeof Schema.BigInt>Int8 (type alias)
Signature
export type Int8 = typeof Int8.TypeInt8Generator
Signature
export declare const Int8Generator: FastCheck.Arbitrary<bigint>UINT16_MAX
Signature
export declare const UINT16_MAX: 65535nUINT16_MIN
Signature
export declare const UINT16_MIN: 0nUINT32_MAX
Signature
export declare const UINT32_MAX: 4294967295nUINT32_MIN
Signature
export declare const UINT32_MIN: 0nUINT64_MAX
Signature
export declare const UINT64_MAX: 18446744073709551615nUINT64_MIN
Signature
export declare const UINT64_MIN: 0nUINT8_MAX
Signature
export declare const UINT8_MAX: 255nUINT8_MIN
Signature
export declare const UINT8_MIN: 0nUint16 (type alias)
Signature
export type Uint16 = typeof Uint16Schema.TypeUint16Arbitrary
Signature
export declare const Uint16Arbitrary: FastCheck.Arbitrary<bigint>Uint16Schema
Signature
export declare const Uint16Schema: Schema.refine<bigint, typeof Schema.BigInt>Uint32 (type alias)
Signature
export type Uint32 = typeof Uint32Schema.TypeUint32Arbitrary
Signature
export declare const Uint32Arbitrary: FastCheck.Arbitrary<bigint>Uint32Schema
Signature
export declare const Uint32Schema: Schema.refine<bigint, typeof Schema.BigInt>Uint64 (type alias)
Signature
export type Uint64 = typeof Uint64Schema.TypeUint64Arbitrary
Signature
export declare const Uint64Arbitrary: FastCheck.Arbitrary<bigint>Uint64Schema
Signature
export declare const Uint64Schema: Schema.refine<bigint, typeof Schema.BigInt>