type alias Request

Discriminated union of every request the daemon accepts.

const req: Request = { type: 'ping' };
req.type; // 'ping' — the daemon's dispatch switches on this discriminant

Definition

Usage

import { type Request } from "lib/commands/daemon/protocol.ts";