Interface: MainThreadObjectTypeDefinition<I, O extends object>
Describes how a serializable initialization payload becomes a stable object in the main-thread runtime.
Type Parameters
Properties
create
readonlycreate: (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
Returns
O
type
readonlytype:string
A globally unique and stable type key.