Skip to content

GuardOutcome

type GuardOutcome =
| {
allowed: true;
result: CheckResult;
}
| {
allowed: false;
body: Record<string, unknown>;
result: | CheckResult
| null;
status: number;
};

Defined in: src/adapters/guard.ts:43

Outcome of evaluateGuard: the decision to attach, or the response to send.