Skip to main content
server.Commands One shared method contract keeps command identity invariant in both query and mutation contexts, including after declaration emission.

Type parameters

Hierarchy

Methods

getTarget

▸ getTarget<C, Name>(command, options): Promise<null | Readonly<{ command: CommandReference ; target: string ; expectedVersion: string ; observedAtMs: number ; __commandTarget?: (command: CommandIdentity<C>) => CommandIdentity<C> }>>

Type parameters

Parameters

Returns

Promise<null | Readonly<{ command: CommandReference ; target: string ; expectedVersion: string ; observedAtMs: number ; __commandTarget?: (command: CommandIdentity<C>) => CommandIdentity<C> }>>

Inherited from

CommandReader.getTarget

request

▸ request<C>(command, input): Promise<CommandRequest<C>>

Type parameters

Parameters

Returns

Promise<CommandRequest<C>>