From 35876960fdc563c631a612f3ee41d945388600dc Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 8 Jun 2024 22:53:09 +0530 Subject: [PATCH] docs: desc wrapper for custom actions --- server/src/browser-management/inputHandlers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/browser-management/inputHandlers.ts b/server/src/browser-management/inputHandlers.ts index 0ea938f0..e653c7d0 100644 --- a/server/src/browser-management/inputHandlers.ts +++ b/server/src/browser-management/inputHandlers.ts @@ -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);