@hoover-institution/hubspot-lib
Version:
A toolkit for deep integration with HubSpot's Marketing Events API with a plugin-based architecture.
10 lines (9 loc) • 310 B
TypeScript
/**
* Registers a plugin by name and event handler map.
* @param pluginName The name of the plugin to register.
* @param eventMap An object mapping event keys (string) to handler functions.
*/
export function createPlugin(
pluginName: string,
eventMap: Record<string, (...args: any[]) => any>
): void;