lint typescript-eslint/consistent-indexed-object-style

This commit is contained in:
Eugene Pankov
2020-12-24 18:56:59 +01:00
parent 2ef3a81dd8
commit aacc603309
11 changed files with 13 additions and 14 deletions

View File

@@ -33,5 +33,5 @@ export abstract class ConfigProvider {
* }
* ```
*/
platformDefaults: {[platform: string]: any} = {}
platformDefaults: Record<string, any> = {}
}

View File

@@ -258,7 +258,7 @@ export class HostAppService {
/**
* Notifies other windows of config file changes
*/
broadcastConfigChange (configStore: {[k: string]: any}): void {
broadcastConfigChange (configStore: Record<string, any>): void {
this.electron.ipcRenderer.send('app:config-change', configStore)
}

View File

@@ -12,7 +12,7 @@ export class TouchbarService {
private tabsSegmentedControl: TouchBarSegmentedControl
private buttonsSegmentedControl: TouchBarSegmentedControl
private tabSegments: SegmentedControlSegment[] = []
private nsImageCache: {[id: string]: NativeImage} = {}
private nsImageCache: Record<string, NativeImage> = {}
private constructor (
private app: AppService,