Fix typing

This commit is contained in:
Victor Meng
2022-10-05 23:48:26 -07:00
parent 3b790ed3e2
commit a0911d92a6
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export class JupyterLabAppFactory {
}
}
public async createTerminalApp(serverSettings: ServerConnection.ISettings): Promise<ITerminalConnection> {
public async createTerminalApp(serverSettings: ServerConnection.ISettings): Promise<ITerminalConnection | undefined> {
const manager = new TerminalManager({
serverSettings: serverSettings,
});

View File

@@ -73,7 +73,7 @@ const closeTab = (tabId: string): void => {
};
const main = async (): Promise<void> => {
let session: ITerminalConnection;
let session: ITerminalConnection | undefined;
postRobot.on(
"props",
{