Hyperlinkv0.8.0-beta.28

QueueHyperlink

QueueHyperlink.queueEntrySelectorconstsrc/QueueHyperlink.ts:425
<Sch extends Schema.Top>(itemSchema: Sch): Schema.Struct<{
  readonly entryId: Schema.optionalKey<Schema.String>
  readonly key: Schema.optional<Schema.String>
  readonly item: Schema.optionalKey<Sch>
}>

Selector for the entry-routing verbs (deadLetter / drop), parameterized by itemSchema (it can match on item). Mirrors the engine's QueueEntrySelector<T>. Over the wire a selector (typically entryId) identifies the target — routing a full QueueEntry is a local convenience that reduces to its entryId.

wire schemas
export const queueEntrySelector = <Sch extends Schema.Top>(itemSchema: Sch) =>
  Schema.Struct({
    entryId: Schema.optionalKey(Schema.String),
    // `optional` (not `optionalKey`): the engine emits `key: undefined` explicitly when no dedup
    // key, so the wire schema must accept a present-but-undefined value (else encode fails on RPC).
    key: Schema.optional(Schema.String),
    item: Schema.optionalKey(itemSchema),
  });
Referenced by 1 symbols