> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Interface: MainThreadObjectTypeDefinition\<I, O _extends_ `object`>

Describes how a serializable initialization payload becomes a stable object
in the main-thread runtime.

## Type Parameters

| Type Parameter         |
| ---------------------- |
| `I`                    |
| `O` _extends_ `object` |

## Properties

### create

> `readonly` **create**: (`initialValue`: `I`) => `O`

Create the realized main-thread object.

This must be a capture-free Main Thread Function. Imports used by the
function must come from shared-runtime modules.

#### Parameters

| Parameter      | Type |
| -------------- | ---- |
| `initialValue` | `I`  |

#### Returns

`O`

***

### type

> `readonly` **type**: `string`

A globally unique and stable type key.
