typescript: Complete most TypeScript todos.

This commit is contained in:
am2505
2020-03-07 22:11:42 +05:30
committed by Anders Kaseorg
parent e536a03fab
commit bb6d90671f
18 changed files with 109 additions and 50 deletions

View File

@@ -912,8 +912,7 @@ class ServerManagerView {
});
ipcRenderer.on('update-realm-name', (event: Event, serverURL: string, realmName: string) => {
// TODO: TypeScript - Type annotate getDomains() or this domain paramter.
DomainUtil.getDomains().forEach((domain: any, index: number) => {
DomainUtil.getDomains().forEach((domain: DomainUtil.ServerConf, index: number) => {
if (domain.url.includes(serverURL)) {
const serverTooltipSelector = '.tab .server-tooltip';
const serverTooltips = document.querySelectorAll(serverTooltipSelector);