Remote / foldkit-remote-server

MutationRefused

class · packages/remote-server/src/index.ts:78

class MutationRefused extends Schema.TaggedError<MutationRefused>()(
  'MutationRefused',
  {
    mutation: Schema.String,
    refusal: Schema.Unknown,
    message: Schema.String,
  },
) {}

A mutation Source's refusal, as the value its descriptor's Refusal declares: made with RemoteServer.refuse, which checks the value's type against the mutation, and sent to the client encoded, beside a message.