Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Snowflake

Hierarchy

  • Snowflake

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Snowflake(bin?: bigint | string): Snowflake

Properties

Protected bin

bin: bigint

Static EPOCH

EPOCH: number = 1420070400000

Accessors

createdAt

  • get createdAt(): Date
  • set createdAt(d: Date): void

increment

  • get increment(): number
  • set increment(incr: number): void

processID

  • get processID(): number
  • set processID(id: number): void

workerID

  • get workerID(): number
  • set workerID(id: number): void

Methods

valueOf

  • valueOf(): bigint

Generated using TypeDoc