typing cleanup

This commit is contained in:
Eugene Pankov
2021-07-14 00:03:05 +02:00
parent e245629c5a
commit 57a198b082
16 changed files with 27 additions and 23 deletions

View File

@@ -91,13 +91,13 @@ import { LocalProfilesService } from './profiles'
TerminalTabComponent,
ShellSettingsTabComponent,
LocalProfileSettingsComponent,
] as any[],
],
declarations: [
TerminalTabComponent,
ShellSettingsTabComponent,
EnvironmentEditorComponent,
LocalProfileSettingsComponent,
] as any[],
],
exports: [
TerminalTabComponent,
EnvironmentEditorComponent,

View File

@@ -30,7 +30,7 @@ export class DockMenuService {
iconPath: process.execPath,
iconIndex: 0,
})),
}] : null as any)
}] : null)
}
if (this.hostApp.platform === Platform.macOS) {
this.electron.app.dock.setMenu(this.electron.Menu.buildFromTemplate(

View File

@@ -160,7 +160,7 @@ export class Session extends BaseSession {
cwd,
env: env,
// `1` instead of `true` forces ConPTY even if unstable
useConpty: (isWindowsBuild(WIN_BUILD_CONPTY_SUPPORTED) && this.config.store.terminal.useConPTY ? 1 : false) as any,
useConpty: isWindowsBuild(WIN_BUILD_CONPTY_SUPPORTED) && this.config.store.terminal.useConPTY ? 1 : false,
})
this.guessedCWD = cwd ?? null