Snowflake
Constructors
Epoch
constEpochMillis
Added in v1.0.0
Source
Signature
declare const constEpochMillis: number;Generator
Signature
declare class Generator extends any {
constructor();
}layerGenerator
Added in v1.0.0
Source
Signature
declare const layerGenerator: Layer.Layer<Generator>;makeGenerator
Added in v1.0.0
Source
Signature
declare const makeGenerator: Effect.Effect<Snowflake.Generator>;Models
Parts
Signature
declare function dateTime(snowflake: Snowflake): Utc;Signature
declare function machineId(snowflake: Snowflake): any;Signature
declare function sequence(snowflake: Snowflake): number;Signature
declare function timestamp(snowflake: Snowflake): number;Signature
declare function toParts(snowflake: Snowflake): Parts;Schemas
SnowflakeFromBigInt
Added in v1.0.0
Source
Signature
declare const SnowflakeFromBigInt: Schema.Schema<Snowflake, bigint>;SnowflakeFromString
Added in v1.0.0
Source
Signature
declare const SnowflakeFromString: Schema.Schema<Snowflake, string>;