You've already forked joplin
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:
@@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user