From a8aa2d75befebbd3c206fc7a9d0453e94a83a688 Mon Sep 17 00:00:00 2001 From: "Rahul R." Date: Sat, 28 Dec 2024 15:17:03 +0530 Subject: [PATCH] fix: avoid using 'Function' as a type --- packages/desktop-lib/src/lib/server/service/server-task.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/desktop-lib/src/lib/server/service/server-task.ts b/packages/desktop-lib/src/lib/server/service/server-task.ts index c9a12b7689..455b9c5b42 100644 --- a/packages/desktop-lib/src/lib/server/service/server-task.ts +++ b/packages/desktop-lib/src/lib/server/service/server-task.ts @@ -105,7 +105,11 @@ export abstract class ServerTask { * @param {Function} reject - Function to reject the promise. * @returns {void} */ - private handleStdout(data: Buffer, resolve: Function, reject: Function): void { + private handleStdout( + data: Buffer, + resolve: (value?: unknown) => void, + reject: (reason?: unknown) => void + ): void { const msg = data.toString(); this.loggerObserver.notify(msg);