@dotcms/client
Version:
Official JavaScript library for interacting with DotCMS REST APIs.
14 lines (13 loc) • 443 B
TypeScript
/**
* Represents a listener for DotcmsClientListener.
*
* @typedef {Object} DotcmsClientListener
* @property {string} action - The action that triggers the event.
* @property {string} event - The name of the event.
* @property {function(...args: any[]): void} callback - The callback function to handle the event.
*/
export type DotcmsClientListener = {
action: string;
event: string;
callback: (...args: any[]) => void;
};