docs: desc wrapper for custom actions
This commit is contained in:
@@ -64,6 +64,11 @@ interface CustomActionEventData {
|
|||||||
settings: any;
|
settings: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A wrapper function for handling custom actions.
|
||||||
|
* @param customActionEventData The custom action event data
|
||||||
|
* @category HelperFunctions
|
||||||
|
*/
|
||||||
const onGenerateAction = async (customActionEventData: CustomActionEventData) => {
|
const onGenerateAction = async (customActionEventData: CustomActionEventData) => {
|
||||||
logger.log('debug', `Generating ${customActionEventData.action} action emitted from client`);
|
logger.log('debug', `Generating ${customActionEventData.action} action emitted from client`);
|
||||||
await handleWrapper(handleGenerateAction, customActionEventData);
|
await handleWrapper(handleGenerateAction, customActionEventData);
|
||||||
|
|||||||
Reference in New Issue
Block a user