Evolution SDK

Numeric.ts

Numeric overview


Table of contents


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) => bigint

Added in v2.0.0

Int32Make

Smart constructor for Int32 that validates and applies branding.

Signature

export declare const Int32Make: (a: bigint, options?: Schema.MakeOptions) => bigint

Added in v2.0.0

Int64Make

Smart constructor for Int64 that validates and applies branding.

Signature

export declare const Int64Make: (a: bigint, options?: Schema.MakeOptions) => bigint

Added in v2.0.0

Int8Make

Smart constructor for Int8 that validates and applies branding.

Signature

export declare const Int8Make: (a: bigint, options?: Schema.MakeOptions) => bigint

Added in v2.0.0

Uint16Make

Smart constructor for Uint16 that validates and applies branding.

Signature

export declare const Uint16Make: (a: bigint, options?: Schema.MakeOptions) => bigint

Added in v2.0.0

Uint32Make

Smart constructor for Uint32 that validates and applies branding.

Signature

export declare const Uint32Make: (a: bigint, options?: Schema.MakeOptions) => bigint

Added in v2.0.0

Uint64Make

Smart constructor for Uint64 that validates and applies branding.

Signature

export declare const Uint64Make: (a: bigint, options?: Schema.MakeOptions) => bigint

Added in v2.0.0

Uint8Make

Smart constructor for Uint8 that validates and applies branding.

Signature

export declare const Uint8Make: (a: bigint, options?: Schema.MakeOptions) => bigint

Added in v2.0.0

model

Uint8 (type alias)

Type alias for 8-bit unsigned integers.

Signature

export type Uint8 = typeof Uint8Schema.Type

Added 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: 32767n

INT16_MIN

Signature

export declare const INT16_MIN: -32768n

INT32_MAX

Signature

export declare const INT32_MAX: 2147483647n

INT32_MIN

Signature

export declare const INT32_MIN: -2147483648n

INT64_MAX

Signature

export declare const INT64_MAX: 9223372036854775807n

INT64_MIN

Signature

export declare const INT64_MIN: -9223372036854775808n

INT8_MAX

Signature

export declare const INT8_MAX: 127n

INT8_MIN

Signature

export declare const INT8_MIN: -128n

Int16

Signature

export declare const Int16: Schema.refine<bigint, typeof Schema.BigInt>

Int16 (type alias)

Signature

export type Int16 = typeof Int16.Type

Int16Generator

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.Type

Int32Generator

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.Type

Int64Generator

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.Type

Int8Generator

Signature

export declare const Int8Generator: FastCheck.Arbitrary<bigint>

UINT16_MAX

Signature

export declare const UINT16_MAX: 65535n

UINT16_MIN

Signature

export declare const UINT16_MIN: 0n

UINT32_MAX

Signature

export declare const UINT32_MAX: 4294967295n

UINT32_MIN

Signature

export declare const UINT32_MIN: 0n

UINT64_MAX

Signature

export declare const UINT64_MAX: 18446744073709551615n

UINT64_MIN

Signature

export declare const UINT64_MIN: 0n

UINT8_MAX

Signature

export declare const UINT8_MAX: 255n

UINT8_MIN

Signature

export declare const UINT8_MIN: 0n

Uint16 (type alias)

Signature

export type Uint16 = typeof Uint16Schema.Type

Uint16Arbitrary

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.Type

Uint32Arbitrary

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.Type

Uint64Arbitrary

Signature

export declare const Uint64Arbitrary: FastCheck.Arbitrary<bigint>

Uint64Schema

Signature

export declare const Uint64Schema: Schema.refine<bigint, typeof Schema.BigInt>