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
Properties
downcast
readonlydowncast: (value:unknown) =>MainThreadObjectHandle<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
Returns
MainThreadObjectHandle<I, O> | undefined
type
readonlytype:string
A globally unique and stable type key.