borrow emitter ctor from xterm
This commit is contained in:
+4
-3
@@ -3,17 +3,18 @@
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
import { Terminal, ITerminalAddon, IDisposable, IEvent } from '@xterm/xterm';
|
||||
import { Terminal, ITerminalAddon, IDisposable } from '@xterm/xterm';
|
||||
import type { Event } from 'vs/base/common/event';
|
||||
import type { ProgressState } from '../src/ProgressAddon';
|
||||
|
||||
declare module '@xterm/addon-progress' {
|
||||
/** xterm.js addon providing an interface for ConEmu's progress sequence */
|
||||
export class ProgressAddon implements ITerminalAddon {
|
||||
export class ProgressAddon implements ITerminalAddon, IDisposable {
|
||||
constructor();
|
||||
public activate(terminal: Terminal): void;
|
||||
public dispose(): void;
|
||||
|
||||
public readonly onChange: IEvent<IProgress>;
|
||||
public readonly onChange: Event<IProgress> | undefined;
|
||||
|
||||
/** getter / setter for current progress */
|
||||
public progress: IProgress;
|
||||
|
||||
Reference in New Issue
Block a user