Remote / foldkit-remote-domain/lower
RejectionsOf
type · packages/remote-domain/src/lower/write.ts:62
type RejectionsOf<M extends LowerableMutation> = {
readonly [Tag in RefusalOfMutation<M>['_tag']]: RejectionFor<
Tag,
Extract<
RefusalOfMutation<M>,
{
readonly _tag: Tag
}
>
>
} & {
readonly Forbidden: RejectionFor<
'Forbidden',
{
readonly _tag: 'Forbidden'
}
>
readonly Unauthenticated: RejectionFor<
'Unauthenticated',
{
readonly _tag: 'Unauthenticated'
}
>
readonly NotFound: RejectionFor<
'NotFound',
{
readonly _tag: 'NotFound'
}
>
readonly Reused: RejectionFor<
'Reused',
{
readonly _tag: 'Reused'
readonly operation: string
}
>
}The Rejections a lowered command may answer: one per member of its mutation's Refusal, and four of its own.