Move platform to common and remove dom dependence in common

Because common/ imports 'xterm', it also imported dom accidentally.

Fixes #1990
This commit is contained in:
Daniel Imms
2019-03-31 23:24:29 -07:00
parent b05c66b132
commit 4a3609f805
15 changed files with 32 additions and 21 deletions
+10 -1
View File
@@ -3,7 +3,16 @@
* @license MIT
*/
import { IEventEmitter } from 'xterm';
export interface IDisposable {
dispose(): void;
}
export interface IEventEmitter {
on(type: string, listener: (...args: any[]) => void): void;
off(type: string, listener: (...args: any[]) => void): void;
emit(type: string, data?: any): void;
addDisposableListener(type: string, handler: (...args: any[]) => void): IDisposable;
}
export type XtermListener = (...args: any[]) => void;