Skip to content
English

OffloadTask

OffloadTask<TArgs, TResult> = object

Defined in: src/worker/OffloadTask.ts:13

A named export of a module, typed with the arguments it takes and the result it returns.

TArgs extends readonly unknown[] = readonly unknown[]

TResult = unknown

readonly optional __types?: object

Defined in: src/worker/OffloadTask.ts:19

Carries the type parameters through inference; never set. A property, not a function, so the task stays covariant in both.

readonly args: TArgs

readonly result: TResult


readonly exportName: string

Defined in: src/worker/OffloadTask.ts:17


readonly kind: "offload-task"

Defined in: src/worker/OffloadTask.ts:14


readonly module: string

Defined in: src/worker/OffloadTask.ts:16

href of the module — absolute, because the worker resolves nothing relative to the caller.