For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/react.mainthreadobjecttype.downcast.md.
This is the dev preview website. Check out the document at lynx-stack.dev

Home > @lynx-js/react > MainThreadObjectType > downcast

MainThreadObjectType.downcast property

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

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

Signature:

readonly downcast: (value: unknown) => MainThreadObjectHandle<I, O> | undefined;