MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / trackEvent

Function trackEvent

packages/react/src/api/analytics.tsx:193–200  ·  view source on GitHub ↗
(
  name: Name,
  ...rest: {} extends AnalyticsEvents[Name]
    ? [properties?: AnalyticsEvents[Name]]
    : [properties: AnalyticsEvents[Name]]
)

Source from the content-addressed store, hash-verified

191 * this a no-op. Events with no properties may omit the second argument.
192 */
193export const trackEvent = <Name extends AnalyticsEventName>(
194 name: Name,
195 ...rest: {} extends AnalyticsEvents[Name]
196 ? [properties?: AnalyticsEvents[Name]]
197 : [properties: AnalyticsEvents[Name]]
198): void => {
199 currentAnalyticsClient?.(name, rest[0] ?? ({} as AnalyticsEvents[Name]));
200};
201
202/**
203 * Declarative mount for React hosts — sets the module-level client during

Callers 15

CommandPaletteFunction · 0.90
handleRegisterDynamicFunction · 0.90
handleSubmitFunction · 0.90
handleSaveFunction · 0.90
handleReconnectFunction · 0.90
handleRemoveFunction · 0.90
openAddConnectionFunction · 0.90
handleRemoveAppFunction · 0.90
handleRemoveCustomMethodFunction · 0.90
handleSubmitFunction · 0.90
handleOAuthConnectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected