Discriminated union of every request the daemon accepts.
const req: Request = { type: 'ping' }; req.type; // 'ping' — the daemon's dispatch switches on this discriminant
Discriminated union of every request the daemon accepts.
const req: Request = { type: 'ping' }; req.type; // 'ping' — the daemon's dispatch switches on this discriminant
import { type Request } from "lib/commands/daemon/protocol.ts";