From 5617fd6cb55d0bba8ba9e3e19258845b6a6f08b8 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 3 Oct 2021 07:52:38 +0530 Subject: refactor: use correct datatypes in ts files --- src/api/server/LocalApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/server') diff --git a/src/api/server/LocalApi.ts b/src/api/server/LocalApi.ts index cc7822e78..19eacf9ff 100644 --- a/src/api/server/LocalApi.ts +++ b/src/api/server/LocalApi.ts @@ -7,7 +7,7 @@ const debug = require('debug')('Ferdi:LocalApi'); export default class LocalApi { // Settings - getAppSettings(type: any) { + getAppSettings(type: string) { return new Promise(resolve => { ipcRenderer.once('appSettings', (_event, resp) => { debug('LocalApi::getAppSettings resolves', resp.type, resp.data); @@ -18,7 +18,7 @@ export default class LocalApi { }); } - async updateAppSettings(type: any, data: any) { + async updateAppSettings(type: string, data: any) { debug('LocalApi::updateAppSettings resolves', type, data); ipcRenderer.send('updateAppSettings', { type, -- cgit v1.2.3-70-g09d2