Interface: SnowflakeGenerateOptions
Defined in: Snowflake.ts:238
Options for Snowflake#generate
Properties
increment?
optionalincrement:bigint
Defined in: Snowflake.ts:250
The increment to use
Default
0n
Remark
keep in mind that this bigint is auto-incremented between generate calls
processId?
optionalprocessId:bigint
Defined in: Snowflake.ts:262
The process ID to use, will be truncated to 5 bits (0-31)
Default
1n
timestamp?
optionaltimestamp:number|bigint|Date
Defined in: Snowflake.ts:243
Timestamp or date of the snowflake to generate
Default
Date.now()
workerId?
optionalworkerId:bigint
Defined in: Snowflake.ts:256
The worker ID to use, will be truncated to 5 bits (0-31)
Default
0n