Add typings test setup

This commit is contained in:
Daniel Imms
2017-08-19 09:49:37 -07:00
parent 4474f29ebf
commit fd8b62610f
5 changed files with 56 additions and 12 deletions
+9
View File
@@ -0,0 +1,9 @@
{
"files": [
"typing-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es5"
}
}
+23
View File
@@ -0,0 +1,23 @@
/// <reference path="../../typings/xterm.d.ts" />
import { Terminal } from 'xterm';
namespace constructor_tests {
{
new Terminal();
new Terminal({});
new Terminal({
cols: 1,
rows: 1
});
new Terminal({
'cols': 1,
'cursorBlink': true,
'cursorStyle': 'block',
'disableStdin': false,
'rows': 1,
'scrollback': 10,
'tabStopWidth': 2,
});
}
}