Skip to content

Commit

Permalink
chore: test checks type with object interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineol authored and jcubic committed Aug 26, 2023
1 parent f592774 commit 2a4233c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test.ts
Expand Up @@ -47,6 +47,11 @@ $('.term').terminal([obj_interpreter]);
$('.term').terminal(["foo.php", obj_interpreter]);
$('.term').terminal(["foo.php", obj_interpreter, function(command) {
}]);
$('.term').terminal({
help: function () {
this.echo('Help command');
}
});

class Foo {
x: string;
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -2,7 +2,8 @@
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": ["es2015", "ES2018.Promise", "dom"]
"lib": ["es2015", "ES2018.Promise", "dom"],
"noImplicitThis": true
},
"exclude": ["npm"]
}

0 comments on commit 2a4233c

Please sign in to comment.