Hyperlinkv0.8.0-beta.28

ShardMap

Source src/ShardMap.ts:27815 lines
export interface ShardMapSchemas<
  Key extends Schema.Top,
  Value extends Schema.Top,
  Error extends Schema.Top = typeof Schema.Never,
> {
  readonly key: Key;
  readonly value: Value;
  readonly error?: Error;
  /** Extract the partition key from a value (routed `put` / `putLocal`). */
  readonly keyOf: (
    value: Schema.Schema.Type<Value>,
  ) => Schema.Schema.Type<Key>;
  readonly description?: string;
  readonly node?: NodeKey<unknown>;
}
Referenced by 1 symbols