Skip to main content Link Search Menu Expand Document (external link)

Number.ts overview

Number related schemas and filters

Since v1.0.0


Exports Grouped by Category


Number filters

i16

A signed 16 bit integer

Signature

declare const i16: (
  annotations?: Schema.Annotations.Filter<Schema.Schema.Type<Schema.Int>> | undefined
) => Schema.filter<typeof Schema.Int>

Source

Since v1.0.0

i32

A signed 32 bit integer

Signature

declare const i32: (
  annotations?: Schema.Annotations.Filter<Schema.Schema.Type<Schema.Int>> | undefined
) => Schema.filter<typeof Schema.Int>

Source

Since v1.0.0

i64

A signed 64 bit integer

Signature

declare const i64: (
  annotations?:
    | Schema.Annotations.Filter<
        Schema.Schema.Type<Schema.Union<[typeof Schema.BigIntFromNumber, typeof Schema.BigInt]>>
      >
    | undefined
) => Schema.filter<Schema.Union<[typeof Schema.BigIntFromNumber, typeof Schema.BigInt]>>

Source

Since v1.0.0

i8

A signed 8 bit integer

Signature

declare const i8: (
  annotations?: Schema.Annotations.Filter<Schema.Schema.Type<Schema.Int>> | undefined
) => Schema.filter<typeof Schema.Int>

Source

Since v1.0.0

u16

An unsigned 16 bit integer

Signature

declare const u16: (
  annotations?: Schema.Annotations.Filter<Schema.Schema.Type<Schema.Int>> | undefined
) => Schema.filter<typeof Schema.Int>

Source

Since v1.0.0

u32

An unsigned 32 bit integer

Signature

declare const u32: (
  annotations?: Schema.Annotations.Filter<Schema.Schema.Type<Schema.Int>> | undefined
) => Schema.filter<typeof Schema.Int>

Source

Since v1.0.0

u64

An unsigned 64 bit integer

Signature

declare const u64: (
  annotations?:
    | Schema.Annotations.Filter<
        Schema.Schema.Type<Schema.Union<[typeof Schema.BigIntFromNumber, typeof Schema.BigInt]>>
      >
    | undefined
) => Schema.filter<Schema.Union<[typeof Schema.BigIntFromNumber, typeof Schema.BigInt]>>

Source

Since v1.0.0

u8

An unsigned 8 bit integer

Signature

declare const u8: (
  annotations?: Schema.Annotations.Filter<Schema.Schema.Type<Schema.Int>> | undefined
) => Schema.filter<typeof Schema.Int>

Source

Since v1.0.0

Number schemas

I16 (class)

A signed 16 bit integer

Signature

declare class I16

Source

Since v1.0.0

I32 (class)

A signed 32 bit integer

Signature

declare class I32

Source

Since v1.0.0

I64 (class)

A signed 64 bit integer

Signature

declare class I64

Source

Since v1.0.0

I8 (class)

A signed 8 bit integer

Signature

declare class I8

Source

Since v1.0.0

U16 (class)

An unsigned 16 bit integer

Signature

declare class U16

Source

Since v1.0.0

U32 (class)

An unsigned 32 bit integer

Signature

declare class U32

Source

Since v1.0.0

U64 (class)

An unsigned 64 bit integer

Signature

declare class U64

Source

Since v1.0.0

U8 (class)

An unsigned 8 bit integer

Signature

declare class U8

Source

Since v1.0.0