Skip to content
Effect Days 2026 Get your ticket

ShardId

4 exports Added in v1.0.0 Source

Constructors

make

Added in v1.0.0 Source

Signature

declare function make(group: string, id: number): ShardId

Models

ShardId

Added in v1.0.0 Source

Signature

declare class ShardId extends {
readonly group: string;
readonly id: number;
} {
constructor(...args: [props: {
readonly group: string;
readonly id: number;
}, options?: MakeOptions]);
readonly [TypeId]: typeof TypeId;
"~effect/interfaces/Equal"(that: ShardId): boolean;
"~effect/interfaces/Hash"(): number;
toString(): string;
static fromString(s: string): ShardId;
static fromStringEncoded(s: string): {
readonly group: string;
readonly id: number;
};
static toString(shardId: {
readonly group: string;
readonly id: number;
}): string;
}

Symbols

TypeId

Added in v1.0.0 Source

Signature

declare const TypeId: unique symbol

TypeId type

Added in v1.0.0 Source

Signature

type TypeId = typeof TypeId