---
url: >-
  https://adk.nht.io/api/batteries/isolation/child_process/interfaces/ForkIsolatedModuleOptions.md
description: >-
  The `{ modulePath, forkOptions? }` variant of [`ForkIsolatedOptions`](https://adk.nht.io/api/batteries/isolation/child_process/type-aliases/ForkIsolatedOptions) —
  spawns via this module's own `node:child_process.fork()` call.
---

# Interface: ForkIsolatedModuleOptions

Defined in: [src/batteries/isolation/child\_process/transport.ts:147](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/child_process/transport.ts#L147)

The `{ modulePath, forkOptions? }` variant of [ForkIsolatedOptions](../type-aliases/ForkIsolatedOptions.md) — spawns via this
module's own `node:child_process.fork()` call.

## Properties

| Property                                         | Type              | Description                                                                                                                                                                                                                                    | Defined in                                                                                                                                                            |
| ------------------------------------------------ | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `forkOptions?` | `ForkOptions`     | Forwarded to `child_process.fork()`. Unless this sets `serialization` explicitly, this transport pins `serialization: 'advanced'` — see this module's top-level remarks.                                                                       | [src/batteries/isolation/child\_process/transport.ts:154](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/child_process/transport.ts#L154) |
|  `modulePath`    | `string` | `URL` | Path to the guest's entry module — passed straight through to `child_process.fork()`. Must be a runnable module (already bundled/transpiled if it isn't plain CommonJS/ESM node can load directly — `fork()` cannot load a `.ts` file itself). | [src/batteries/isolation/child\_process/transport.ts:151](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/child_process/transport.ts#L151) |
|  `spawn?`             | `undefined`       | Absent in this variant — mutually exclusive with `modulePath`/`forkOptions`. See [ForkIsolatedResolverOptions](ForkIsolatedResolverOptions.md) for the BYO-spawner variant.                                                                    | [src/batteries/isolation/child\_process/transport.ts:157](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/child_process/transport.ts#L157) |
