Skip to content

Type Alias: ActOutcome ​

ts
type ActOutcome = 
  | {
  ok: true;
}
  | {
  ok: false;
  reason: string;
};

Defined in: server/room.ts:33

What act reports: the hook's changes were committed, or it was refused and why.

Union Members ​

Type Literal ​

ts
{
  ok: true;
}
NameTypeDescriptionDefined in
oktrueThe hook's changes were committed and sent.server/room.ts:36

Type Literal ​

ts
{
  ok: false;
  reason: string;
}
NameTypeDescriptionDefined in
okfalseThe hook was refused: nothing it did was kept.server/room.ts:40
reasonstringWhat it passed to reject(), or internal_error if it threw.server/room.ts:42

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.