Public typealias

Signature
type TLUiEventHandler<T extends keyof TLUiEventMap = keyof TLUiEventMap> = (
  name: T,
  data: Join<
    {
      source: TLUiEventSource
    },
    TLUiEventMap[T]
  >
) => void
References

TLUiEventMap, TLUiEventSource

Source

packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx

TLUiEventContextTypeTLUiEventMap