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

Method createEventPayload

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

Source from the content-addressed store, hash-verified

181 }
182
183 createEventPayload<TEvent extends keyof TEventMap & string>(
184 eventSuffix: TEvent,
185 payload: TEventMap[TEvent],
186 ) {
187 return {
188 type: `${this.#pluginId}:${eventSuffix}`,
189 payload,
190 pluginId: this.#pluginId,
191 }
192 }
193 emit<TEvent extends keyof TEventMap & string>(
194 eventSuffix: TEvent,
195 payload: TEventMap[TEvent],

Callers 2

emitMethod · 0.95
noop.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected