@mocanvas/mocanvas · type
type TLUiEventContextType = TLUiEventHandlerThe value useUiEvents returns — the handler an app passed as
onUiEvent, or a no-op.
Named separately from TLUiEventHandler because they answer different questions: the handler type is what an app *writes*, this is what a component *reads*. They are the same function today; keeping the two names means the context can gain a second member later without changing every app's handler signature.
Mentioned here
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.