Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

WorkerRequestArgs

type WorkerRequestArgs =
| [string, UnifiedParsingOptions]
| [string[]]
| [string]
| [string, WorkerWhatIfOverrides]
| [string, number, {
maxDepth?: number;
maxLines?: number;
}]
| [{
timeoutMs?: number;
}]
| [string, number]
| [string, DocumentPosition]
| [string, DocumentPosition, string]
| [string, LineShift];

Defined in: packages/engine/src/worker/protocol.ts:84

The positional arguments for each method, kept as a union so a request is type-checked against the method it names. An AbortSignal is never in here: it stays main-side and drives a CancelMessage instead.