niieani / aurelia-binding-functions

An Aurelia plugin that makes it possible create BindingFunctions
1 stars 3 forks source link

Cannot find name 'Expression' in binding-function-scope.d.ts #1

Closed NickDarvey closed 8 years ago

NickDarvey commented 8 years ago

I added aurelia-rxjs and aurelia-binding-functions to my project but I'm having trouble compiling the BindingFunctionScope class. The import statement at the top seems to understand the Expression interface, but BindingFunctionScope can't extend it. (This happens in the tooling and in the gulp build task.)

aurelia-binding-functions version 0.2.2

image

niieani commented 8 years ago

This is an issue with Aurelia's generated d.ts files. Expression is defined as an Interface, while it should be a Class. I changed it manually for it to compile, however you can file a bug report or a pull request to aurelia-binding about it.