Ensure types are checked in demo, fix errors, emit to out-demo

Part of #5509
This commit is contained in:
Daniel Imms
2025-12-27 05:31:21 -08:00
parent 995b491a7a
commit 4d48f8624b
10 changed files with 46 additions and 52 deletions
+13 -15
View File
@@ -3,27 +3,25 @@
* @license MIT
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import type { AddonCollection } from '../../types';
import type { IControlWindow } from '../controlBar';
import type { Terminal } from '@xterm/xterm';
export abstract class BaseWindow implements IControlWindow {
protected get _terminal(): Terminal { return this.__terminal; }
protected get _terminal(): Terminal { return this._terminalPrivate; }
constructor(
private __terminal: Terminal,
protected readonly _addons: AddonCollection,
) {
constructor(
private _terminalPrivate: Terminal,
protected readonly _addons: AddonCollection,
) {
}
}
setTerminal(terminal: Terminal): void {
this.__terminal = terminal;
}
public setTerminal(terminal: Terminal): void {
this._terminalPrivate = terminal;
}
abstract id: string;
abstract label: string;
abstract build(container: HTMLElement): void;
}
public abstract id: string;
public abstract label: string;
public abstract build(container: HTMLElement): void;
}