From 77e8da5a0633e5a282ddc82f52b354101d112f0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 4 Apr 2024 11:33:10 +0200 Subject: [PATCH 1/1] docs: refine code comment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/task-functions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/worker/task-functions.ts b/src/worker/task-functions.ts index b912f05c..5518043e 100644 --- a/src/worker/task-functions.ts +++ b/src/worker/task-functions.ts @@ -2,6 +2,7 @@ * Task synchronous function that can be executed. * * @param data - Data sent to the worker. + * @returns Execution response. * * @typeParam Data - Type of data sent to the worker. This can only be structured-cloneable data. * @typeParam Response - Type of execution response. This can only be structured-cloneable data. @@ -15,6 +16,7 @@ export type TaskSyncFunction = ( * This function must return a promise. * * @param data - Data sent to the worker. + * @returns Execution response promise. * * @typeParam Data - Type of data sent to the worker. This can only be structured-cloneable data. * @typeParam Response - Type of execution response. This can only be structured-cloneable data. -- 2.34.1