import type { GoogleEventTypes } from './googleEventNames' export type SendEvent = ( eventName: Event | (string & Record), eventData: { [key: string]: unknown }, ) => void export function sendEvent( // eslint-disable-next-line @typescript-eslint/no-unused-vars eventName: Event, // eslint-disable-next-line @typescript-eslint/no-unused-vars eventData: GoogleEventTypes[Event], ) { // This is a generic event handler and is plugins from google-analytics and google datalayer }