Skip to content

Commit

Permalink
Document addDisposableListener
Browse files Browse the repository at this point in the history
Part of xtermjs#1642
  • Loading branch information
Tyriar committed Aug 31, 2018
1 parent dd7081f commit a194263
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit a194263

Please sign in to comment.