Remote / foldkit-remote-domain

CommandConfig

type · packages/remote-domain/src/adapter/binding.ts:139

type CommandConfig<
  M extends AnyMutation,
  C extends Domain.Command.Any,
  E extends AnyEntity,
> = {
  readonly target: (input: InputOfMutation<M>) => string
  readonly input: (input: InputOfMutation<M>) => CommandInputOf<C>
} & ([RejectionOf<C>] extends [never]
  ? {
      readonly refusals?: {}
    }
  : {
      readonly refusals: Refusals<C, M>
    }) &
  ([WrittenEntity<M>] extends [never]
    ? {
        readonly entity: E
        readonly written?: Written<M, C, E>
      }
    : {
        readonly written: Written<M, C, E>
      })

What DomainRemote.command takes besides the mutation, the Api and the command's name.