Skip to content

Commit

Permalink
Clarify you shouldn't use the object after Terminal.dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jul 28, 2022
1 parent 04b513c commit a081a53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion typings/xterm-headless.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ declare module 'xterm-headless' {

/*
* Disposes of the terminal, detaching it from the DOM and removing any
* active listeners.
* active listeners. Once the terminal is disposed it should not be used
* again.
*/
dispose(): void;

Expand Down
3 changes: 2 additions & 1 deletion typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,8 @@ declare module 'xterm' {

/*
* Disposes of the terminal, detaching it from the DOM and removing any
* active listeners.
* active listeners. Once the terminal is disposed it should not be used
* again.
*/
dispose(): void;

Expand Down

0 comments on commit a081a53

Please sign in to comment.