1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: Fixed TS error

This commit is contained in:
Laurent Cozic
2025-05-04 17:57:09 +01:00
parent 5e5a77786c
commit e5b2e22479

View File

@@ -167,7 +167,7 @@ export const startServer = async (startPort: number, secretKeyFilePath: string,
});
};
export const stopServer = async (server: IpcServer|null) => {
export const stopServer = async (server: IpcServer|null): Promise<void> => {
if (!server) return;
return new Promise((resolve, reject) => {
@@ -175,7 +175,7 @@ export const stopServer = async (server: IpcServer|null) => {
if (error) {
reject(error);
} else {
resolve(null);
resolve();
}
});
});