Merge pull request #3958 from Tyriar/dispose_doc

Clarify you shouldn't use the object after Terminal.dispose
This commit is contained in:
Daniel Imms
2022-07-28 10:51:21 -07:00
committed by GitHub
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -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;
/**
+2 -1
View File
@@ -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;