A Snowflakify instance must follow the following conditions:
Optional options: SnowflakifyOptionsOptional parameter for specifying Snowflakify options.
Can be an array of fragments or an object with the following properties:
epoch: A custom epoch timestamp.preset: "worker_process", "ipv4", or "mac"Private bufferReadonly fragmentsArray of fragments used to generate snowflake IDs.
When reading this array outside of a Snowflakify class:
Readonly totalTotal number of bits in the snowflake ID.
Private coupleReturns a destructured snowflake.
An array of destructured fragments.
[SNOWFLAKE_INVALID] If snowflake is not a number, bigint, or string of a positive number.
The snowflake to be destructured.
Returns a destructured snowflake.
An array of destructured fragments.
[SNOWFLAKE_INVALID] If snowflake is not a valid hexademical string.
The hexadecimal snowflake to be destructured.
Private resolveInternal
Optional options: SnowflakifyOptionsPrivate updateGenerated using TypeDoc
Snowflakify class for generating snowflake IDs.