Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
interface SnowflakeGenerateOptions
import { type SnowflakeGenerateOptions } from "https://deno.land/x/snowflakes@1.0.0/Snowflake.ts";

Options for Snowflake#generate

Properties

optional
timestamp: number | bigint | Date

Timestamp or date of the snowflake to generate

optional
increment: bigint

The increment to use

optional
workerId: bigint

The worker ID to use, will be truncated to 5 bits (0-31)

optional
processId: bigint

The process ID to use, will be truncated to 5 bits (0-31)