Document addDisposableListener

Part of #1642
This commit is contained in:
Daniel Imms
2018-08-31 12:02:54 -07:00
parent dd7081f948
commit a194263183
+6
View File
@@ -425,6 +425,12 @@ declare module 'xterm' {
*/
emit(type: string, data?: any): void;
/**
* Adds an event listener to the Terminal, returning an IDisposable that can
* be used to conveniently remove the event listener.
* @param type The type of event.
* @param handler The event handler.
*/
addDisposableListener(type: string, handler: (...args: any[]) => void): IDisposable;
/**