Options
All
  • Public
  • Public/Protected
  • All
Menu

Module util

@skeldjs/util

This package contains important utility functions, and while you can install it on its own with npm install --save @skeldjs/util or yarn add @skeldjs/util, it is one package of a bigger project, skeldjs.

You can view auto-updating documentation for this package hosted at github pages at https://skeld.js.org/modules/util.html

Index

Variables

Const BOUNDS

BOUNDS: { int16: { max: 32767; min: -32767 }; int32: { max: 2147483647; min: -2147483647 }; int64: { max: bigint; min: bigint }; int8: { max: 127; min: -127 }; uint16: { max: 65535; min: 0 }; uint32: { max: 4294967295; min: 0 }; uint64: { max: 18446744073709552000; min: 0 }; uint8: { max: 255; min: 0 } } = ...

Type declaration

  • int16: { max: 32767; min: -32767 }
    • max: 32767
    • min: -32767
  • int32: { max: 2147483647; min: -2147483647 }
    • max: 2147483647
    • min: -2147483647
  • int64: { max: bigint; min: bigint }
    • max: bigint
    • min: bigint
  • int8: { max: 127; min: -127 }
    • max: 127
    • min: -127
  • uint16: { max: 65535; min: 0 }
    • max: 65535
    • min: 0
  • uint32: { max: 4294967295; min: 0 }
    • max: 4294967295
    • min: 0
  • uint64: { max: 18446744073709552000; min: 0 }
    • max: 18446744073709552000
    • min: 0
  • uint8: { max: 255; min: 0 }
    • max: 255
    • min: 0

Const SIZES

SIZES: { float: 4; int16: 2; int32: 4; int64: 8; int8: 1; uint16: 2; uint32: 4; uint64: 8; uint8: 1 } = ...

Type declaration

  • float: 4
  • int16: 2
  • int32: 4
  • int64: 8
  • int8: 1
  • uint16: 2
  • uint32: 4
  • uint64: 8
  • uint8: 1

Type aliases

DeepPartial

DeepPartial<T>: T extends Record<any, any> ? Partial<{[ K in keyof T]: DeepPartial<T[K]> }> : T

Type parameters

  • T

Functions

sleep

  • sleep(ms: number): Promise<void>

Generated using TypeDoc