docs: desc wrapper for custom actions

This commit is contained in:
karishmas6
2024-06-08 22:53:09 +05:30
parent 3cdd3bf534
commit 35876960fd

View File

@@ -64,6 +64,11 @@ interface CustomActionEventData {
settings: any;
}
/**
* A wrapper function for handling custom actions.
* @param customActionEventData The custom action event data
* @category HelperFunctions
*/
const onGenerateAction = async (customActionEventData: CustomActionEventData) => {
logger.log('debug', `Generating ${customActionEventData.action} action emitted from client`);
await handleWrapper(handleGenerateAction, customActionEventData);