Skip to content

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 ReadonlySide<
  {
    readonly group: String;
    readonly id: Int;
  },
  "Type"
> {
  constructor(
    ...args: [
      props: ReadonlyMakeIn<{
        readonly group: String;
        readonly id: Int;
      }>,
      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;