MCPcopy Create free account
hub / github.com/TanStack/devtools / createEventPayload

Method createEventPayload

packages/event-bus-client/src/noop.ts:35–44  ·  view source on GitHub ↗
(
    eventSuffix: TEvent,
    payload: TEventMap[TEvent],
  )

Source from the content-addressed store, hash-verified

33 }
34
35 createEventPayload<TEvent extends keyof TEventMap & string>(
36 eventSuffix: TEvent,
37 payload: TEventMap[TEvent],
38 ) {
39 return {
40 type: `${this.#pluginId}:${eventSuffix}`,
41 payload,
42 pluginId: this.#pluginId,
43 }
44 }
45
46 emit<TEvent extends keyof TEventMap & string>(
47 _eventSuffix: TEvent,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected