Search
Preparing search index...
The search index is not available
@spectacles/util - v0.4.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"Snowflake"
Snowflake
Class Snowflake
Hierarchy
Snowflake
Index
Constructors
constructor
Properties
bin
EPOCH
Accessors
created
At
increment
processID
workerID
Methods
value
Of
Constructors
constructor
new
Snowflake
(
bin
?:
bigint
|
string
)
:
Snowflake
Parameters
Default value
bin:
bigint
|
string
= 0n
Returns
Snowflake
Properties
Protected
bin
bin
:
bigint
Static
EPOCH
EPOCH
:
number
= 1420070400000
Accessors
created
At
get
createdAt
(
)
:
Date
set
createdAt
(
d
:
Date
)
:
void
Returns
Date
Parameters
d:
Date
Returns
void
increment
get
increment
(
)
:
number
set
increment
(
incr
:
number
)
:
void
Returns
number
Parameters
incr:
number
Returns
void
processID
get
processID
(
)
:
number
set
processID
(
id
:
number
)
:
void
Returns
number
Parameters
id:
number
Returns
void
workerID
get
workerID
(
)
:
number
set
workerID
(
id
:
number
)
:
void
Returns
number
Parameters
id:
number
Returns
void
Methods
value
Of
value
Of
(
)
:
bigint
Returns
bigint
Globals
"
Permissions"
"
Snowflake"
"
Snowflake.test"
"encode"
"encode.test"
"errors"
"errors.test"
"index"
Snowflake
constructor
bin
EPOCH
created
At
increment
processID
workerID
value
Of
Generated using
TypeDoc