Migrate Clipboard handler to TypeScript

Also apply JavaScript rules in `.editorconfig` in TypeScript files as well.

Part of #335
This commit is contained in:
Paris Kasidiaris
2016-12-06 10:01:06 +00:00
parent 9f5790fcaf
commit 824a9c6dbf
4 changed files with 52 additions and 26 deletions
+15
View File
@@ -2,12 +2,26 @@
* @license MIT
*/
export interface IBrowser {
isNode: boolean;
userAgent: string;
platform: string;
isFirefox: boolean;
isMSIE: boolean;
isMac: boolean;
isIpad: boolean;
isIphone: boolean;
isMSWindows: boolean;
}
export interface ITerminal {
element: HTMLElement;
rowContainer: HTMLElement;
textarea: HTMLTextAreaElement;
ydisp: number;
lines: string[];
rows: number;
browser: IBrowser;
/**
* Emit the 'data' event and populate the given data.
@@ -16,4 +30,5 @@ export interface ITerminal {
handler(data: string);
on(event: string, callback: () => void);
scrollDisp(disp: number, suppressScrollEvent: boolean);
cancel(ev: Event, force?: boolean);
}