# Interface WorkerOptions

interface WorkerOptions {
argv?: any[];
env?: Dict<string> | typeof SHARE_ENV;
eval?: boolean;
workerData?: any;
stdin?: boolean;
stdout?: boolean;
stderr?: boolean;
execArgv?: string[];
resourceLimits?: ResourceLimits;
transferList?: TransferListItem[];
trackUnmanagedFds?: boolean;
name?: string;
}

- Defined in node_modules/@types/node/worker_threads.d.ts:244

#####
Index

### Properties

argv?
env?
eval?
workerData?
stdin?
stdout?
stderr?
execArgv?
resourceLimits?
transferList?
trackUnmanagedFds?
name?

##
Properties

### `Optional` argv

argv?: any[]

List of arguments which would be stringified and appended to `process.argv` in the worker. This is mostly similar to the `workerData` but the values will be available on the global `process.argv` as if they were passed as CLI options to the script.

- Defined in node_modules/@types/node/worker_threads.d.ts:251

### `Optional` env

env?: Dict<string> | typeof SHARE_ENV

- Defined in node_modules/@types/node/worker_threads.d.ts:252

### `Optional` eval

eval?: boolean

- Defined in node_modules/@types/node/worker_threads.d.ts:253

### `Optional` workerData

workerData?: any

- Defined in node_modules/@types/node/worker_threads.d.ts:254

### `Optional` stdin

stdin?: boolean

- Defined in node_modules/@types/node/worker_threads.d.ts:255

### `Optional` stdout

stdout?: boolean

- Defined in node_modules/@types/node/worker_threads.d.ts:256

### `Optional` stderr

stderr?: boolean

- Defined in node_modules/@types/node/worker_threads.d.ts:257

### `Optional` execArgv

execArgv?: string[]

- Defined in node_modules/@types/node/worker_threads.d.ts:258

### `Optional` resourceLimits

resourceLimits?: ResourceLimits

- Defined in node_modules/@types/node/worker_threads.d.ts:259

### `Optional` transferList

transferList?: TransferListItem[]

Additional data to send in the first worker message.

- Defined in node_modules/@types/node/worker_threads.d.ts:263

### `Optional` trackUnmanagedFds

trackUnmanagedFds?: boolean

#### Default

    true

- Defined in node_modules/@types/node/worker_threads.d.ts:267

### `Optional` name

name?: string

An optional `name` to be appended to the worker title for debuggin/identification purposes, making the final title as `[worker ${id}] ${name}`.

- Defined in node_modules/@types/node/worker_threads.d.ts:273