Add more TS lints (#6084)
* Fix to not call onMouseLeave with no selected object * Add no this alias lint * Add more lints and fix JSON formatting * Fix to use lower-case string type * Add another namespace lint * Fix to not use plus on possibly non-string values
This commit is contained in:
@ -11,7 +11,7 @@ import type { WebContentSendPayload } from './menu/channels'
|
||||
|
||||
const typeSafeIpcRendererOn = (
|
||||
channel: Channel,
|
||||
listener: (event: IpcRendererEvent, ...args: any[]) => Promise<void> | any
|
||||
listener: (event: IpcRendererEvent, ...args: any[]) => void
|
||||
) => ipcRenderer.on(channel, listener)
|
||||
|
||||
const resizeWindow = (width: number, height: number) =>
|
||||
@ -163,7 +163,7 @@ const listMachines = async (
|
||||
})
|
||||
}
|
||||
|
||||
const getMachineApiIp = async (): Promise<String | null> =>
|
||||
const getMachineApiIp = async (): Promise<string | null> =>
|
||||
ipcRenderer.invoke('find_machine_api')
|
||||
|
||||
const getArgvParsed = () => {
|
||||
|
Reference in New Issue
Block a user