mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fix mithril/mithril-tests.ts
This commit is contained in:
@@ -24,7 +24,7 @@ var todo = {
|
||||
|
||||
this.add = function() {
|
||||
if (this.description()) {
|
||||
this.list.push(new todo.Todo({description: this.description()}));
|
||||
this.list.push(new (<any>todo.Todo)({description: this.description()}));
|
||||
this.description("");
|
||||
}
|
||||
}.bind(this);
|
||||
|
||||
Reference in New Issue
Block a user