chore: removed last 'any' types + added declaration for mpris-service's Player class

This commit is contained in:
2023-05-13 22:45:15 +02:00
parent 62244f432a
commit 60eb1bbef9
7 changed files with 70 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ export const startExpress = (mainWindow: BrowserWindow) => {
* @param {*} res
* @param {*} action
*/
function handleGlobalEvent(res: Response, action: any) {
function handleGlobalEvent(res: Response, action: string) {
mainWindow.webContents.send("globalEvent", action);
res.sendStatus(200);
}

View File

@@ -66,7 +66,7 @@ export const createSettingsWindow = function () {
},
});
settingsWindow.on("close", (event: any) => {
settingsWindow.on("close", (event: Event) => {
if (settingsWindow != null) {
event.preventDefault();
settingsWindow.hide();