Add cols and rows to d.ts

This commit is contained in:
Daniel Imms
2017-08-20 11:43:40 -07:00
parent 7645bdd418
commit cea3dd60b6
+17
View File
@@ -87,9 +87,26 @@ declare module 'xterm' {
* The class that represents an xterm.js terminal.
*/
export class Terminal {
/**
* The element containing the terminal.
*/
element: HTMLElement;
/**
* The textarea that accepts input for the terminal.
*/
textarea: HTMLTextAreaElement;
/**
* The number of rows in the terminal's viewport.
*/
rows: number;
/**
* The number of columns in the terminal's viewport.
*/
cols: number;
/**
* Creates a new `Terminal` object.
*