Mark element and textarea APIs as | undefined

Didn't fix all the issues in Terminal.ts as they will be covered in layering
refactor

Fixes #2471
This commit is contained in:
Daniel Imms
2019-10-15 16:29:13 -07:00
parent e14b1f75fe
commit cfe8022867
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -352,12 +352,12 @@ declare module 'xterm' {
/**
* The element containing the terminal.
*/
readonly element: HTMLElement;
readonly element: HTMLElement | undefined;
/**
* The textarea that accepts input for the terminal.
*/
readonly textarea: HTMLTextAreaElement;
readonly textarea: HTMLTextAreaElement | undefined;
/**
* The number of rows in the terminal's viewport. Use