API Reference/WorkerThreadsDriverOptions
interface

WorkerThreadsDriverOptions

typescript

Options for worker threads driver spawn

Properties

argv(optional)

string[]

Arguments to pass to the worker script

eval(optional)

boolean

If true, script is treated as JavaScript code instead of a path

execArgv(optional)

string[]

List of node CLI options passed to the worker. Useful for loading TypeScript files via tsx:

logger(optional)

Logger

Custom logger instance

logLevel(optional)

LogLevel

Log level for driver operations

resourceLimits(optional)

WorkerThreadsResourceLimits

Resource limits for the worker thread

serializer(optional)

Serializer

Custom serializer (must match worker side)

transferList(optional)

ArrayBuffer[]

List of transferable objects to transfer to worker

workerData(optional)

unknown

Additional data to pass to worker via workerData