Skip to content

Commit

Permalink
fix: avoid using 'Function' as a type
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-rocket committed Dec 28, 2024
1 parent 477fe0d commit a8aa2d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/desktop-lib/src/lib/server/service/server-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a8aa2d7

Please sign in to comment.