MCPcopy Create free account
hub / github.com/Effect-TS/effect / Snowflake

Function Snowflake

packages/effect/src/unstable/cluster/Snowflake.ts:56–57  ·  view source on GitHub ↗
(input: string | number | bigint)

Source from the content-addressed store, hash-verified

54 * @since 4.0.0
55 */
56export const Snowflake = (input: string | number | bigint): Snowflake =>
57 typeof input === "bigint" ? input as Snowflake : BigInt(input) as Snowflake
58
59/**
60 * Namespace containing support types for snowflake parts and generators.

Callers 1

emptyFromMethod · 0.90

Calls 1

BigIntInterface · 0.50

Tested by

no test coverage detected