diff options
Diffstat (limited to 'src/api/server')
-rw-r--r-- | src/api/server/LocalApi.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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'); | |||
7 | 7 | ||
8 | export default class LocalApi { | 8 | export default class LocalApi { |
9 | // Settings | 9 | // Settings |
10 | getAppSettings(type: any) { | 10 | getAppSettings(type: string) { |
11 | return new Promise(resolve => { | 11 | return new Promise(resolve => { |
12 | ipcRenderer.once('appSettings', (_event, resp) => { | 12 | ipcRenderer.once('appSettings', (_event, resp) => { |
13 | debug('LocalApi::getAppSettings resolves', resp.type, resp.data); | 13 | debug('LocalApi::getAppSettings resolves', resp.type, resp.data); |
@@ -18,7 +18,7 @@ export default class LocalApi { | |||
18 | }); | 18 | }); |
19 | } | 19 | } |
20 | 20 | ||
21 | async updateAppSettings(type: any, data: any) { | 21 | async updateAppSettings(type: string, data: any) { |
22 | debug('LocalApi::updateAppSettings resolves', type, data); | 22 | debug('LocalApi::updateAppSettings resolves', type, data); |
23 | ipcRenderer.send('updateAppSettings', { | 23 | ipcRenderer.send('updateAppSettings', { |
24 | type, | 24 | type, |