Chutzpah Typescript compiler support for ...any params -


I am using the ChhotZip 3.2.1 command line in my teammates installation to execute some team level unit tests .

I am getting this error when he tries to run:

  [Javascript test] Error: Error in [JavaScript runtime error]: [11:31: 03] [Javascript Test] C: /TeamCity/buildAgent/work/fd0bdc3857f5e4c1/Claims/Web/Scripts/app/search/SearchController.ts (77,16): Error TS2082: [11:31: Any of the supply parameters call target The signature also does not match: 03] [Javascript test] type of call signature '(Event: ng.injilatorEvent, Element: Jquery) = & g T; Zero and '(event: ng.injilatorEvent, ... args: some []) => There are any 'incompatibilities':  

This bit of code in question is:

  $ scope $ (EventConstants.TYPEAHEAD_SELECTED, (at event: .ng. IAngularEvent, Tip: FieldTapAiaHead Suggestions) => {this.search (false);});  

The definition of $ on angular.d.ts is:

  at $ (name: string, listener: (Event: IAngularEvent, .. .args : Any []) & gt; Any: Function;  

This code is fine within the VS2013 IDE (now using built-in typeScript support in VS)

< P> I have read in other places that some compilers complain here because the use of D.ts is ... args: any [] means the parameters are optional, and this is Passed in the $ function Conflicts with the signature of the function, where suggestion is required.

However, the IDE does not pay attention to this problem, so why do the Chatjapa compiler behave in the same way Any way?

You should use Chipspace's compiling setting (read about here :) It was released in the latest version of chutzpah and it will tell you to chutzpah to js Area allows to compile code (or if it should just assume JS is external funding, and where to find it).

This is now the recommended approach to working with TypeScript and Chutzpah.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -