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 8df878b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions typings/xterm-headless.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,10 @@ declare module 'xterm-headless' {
registerMarker(cursorYOffset?: number): IMarker | undefined;

/*
* Disposes of the terminal, detaching it from the DOM and removing any
* active listeners.
*/
* Disposes of the terminal, detaching it from the DOM and removing any
* 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 8df878b

Please sign in to comment.