> 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: MainThreadObjectType\<I, O _extends_ `object`>

An immutable MainThreadObject type token with source-handle inspection.

The factory function belongs to the input definition and is not exposed
by the returned token. In the background runtime they compile to opaque
Main Thread Function descriptors rather than bundling their implementation.

## Type Parameters

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

## Properties

### downcast

> `readonly` **downcast**: (`value`: `unknown`) => [`MainThreadObjectHandle`](/next/api/react/Interfaces/MainThreadObjectHandle.md)\<`I`, `O`> | `undefined`

Narrow a value to a source-runtime handle of this exact type.

This does not create or access the realized main-thread object.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `value`   | `unknown` |

#### Returns

[`MainThreadObjectHandle`](/next/api/react/Interfaces/MainThreadObjectHandle.md)\<`I`, `O`> | `undefined`

***

### type

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

A globally unique and stable type key.
