add params in doc
This commit is contained in:
Vendored
+8
-2
@@ -655,6 +655,8 @@ declare module 'xterm' {
|
|||||||
* Raw bytes will always be treated as UTF-8 encoded, string data as UTF-16.
|
* Raw bytes will always be treated as UTF-8 encoded, string data as UTF-16.
|
||||||
* `callback` is an optional callback that gets called once the data
|
* `callback` is an optional callback that gets called once the data
|
||||||
* chunk was processed by the parser.
|
* chunk was processed by the parser.
|
||||||
|
* @param data The data to write to the terminal.
|
||||||
|
* @param callback Optional callback when data was processed.
|
||||||
*/
|
*/
|
||||||
write(data: string | Uint8Array, callback?: () => void): void;
|
write(data: string | Uint8Array, callback?: () => void): void;
|
||||||
|
|
||||||
@@ -662,12 +664,16 @@ declare module 'xterm' {
|
|||||||
* Writes data to the terminal, followed by a break line character (\n).
|
* Writes data to the terminal, followed by a break line character (\n).
|
||||||
* `callback` is an optional callback that gets called once the data
|
* `callback` is an optional callback that gets called once the data
|
||||||
* chunk was processed by the parser.
|
* chunk was processed by the parser.
|
||||||
|
* @param data The data to write to the terminal.
|
||||||
|
* @param callback Optional callback when data was processed.
|
||||||
*/
|
*/
|
||||||
writeln(data: string | Uint8Array, callback?: () => void): void;
|
writeln(data: string | Uint8Array, callback?: () => void): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write UTF8 data to the terminal. Deprecated, use `.write` instead.
|
* Write UTF8 data to the terminal.
|
||||||
* @deprecated
|
* @param data The data to write to the terminal.
|
||||||
|
* @param callback Optional callback when data was processed.
|
||||||
|
* @deprecated use `write` instead
|
||||||
*/
|
*/
|
||||||
writeUtf8(data: Uint8Array, callback?: () => void): void;
|
writeUtf8(data: Uint8Array, callback?: () => void): void;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user