Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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)