Enable strict null checks and restrict DOM access in common

Part of #1507
Part of #1319
This commit is contained in:
Daniel Imms
2018-09-17 13:44:31 -07:00
parent 86c78e726d
commit a7a58aa055
4 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export class EventEmitter extends Disposable implements IEventEmitter, IDisposab
super();
// Restore the previous events if available, this will happen if the
// constructor is called multiple times on the same object (terminal reset).
this._events = this._events || {};
this._events = (<any>this)._events || {};
}
public on(type: string, listener: XtermListener): void {
+18
View File
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"es5"
],
"rootDir": ".",
"noEmit": true,
"strict": true,
"types": [
"../../node_modules/@types/mocha",
"../../"
]
},
"include": [
"./**/*"
]
}