Remote / foldkit-remote-domain/imported

ImportedMutation

type · packages/remote-domain/src/imported/mutation.ts:29

type ImportedMutation<
  A extends AnyApi,
  Name extends CommandNameOf<A>,
  Refused,
> = MutationDescriptor<
  Name,
  {
    readonly target: CommandOf<A, Name>['target']['Type']
    readonly input: CommandInputOf<CommandOf<A, Name>>
  },
  CommandOf<A, Name>['reply'] extends Schema.Top
    ? CommandOf<A, Name>['reply']['Type']
    : {},
  Refused
>

The mutation an imported command lands as: its target and input, its reply, its refusals.