Remote / foldkit-remote-domain/lower
LoweredCommand
type · packages/remote-domain/src/lower/write.ts:91
type LoweredCommand<
M extends LowerableMutation,
Ev extends Domain.Event.Any,
Ms extends Domain.Middleware.List,
> = CommandClass<
M['name'],
typeof Schema.String,
FieldsFor<CommandInputOf<M>>,
readonly [Ev],
ReadonlyArray<RejectionClassOf<M>>,
Schema.Struct<ReplyFieldsOf<M>>,
Ms,
Domain.Middleware.Apply<
CommandRpc<
M['name'],
typeof Schema.String,
FieldsFor<CommandInputOf<M>>,
ReadonlyArray<RejectionClassOf<M>>,
Schema.Struct<ReplyFieldsOf<M>>
>,
Ms
>
>The command a lowered write becomes, as Domain.Command types one: its
instance is the write's input less its id, its reply the fields it sets
and the revision.