Re: Template return type for IDL function in respec.js

On Monday, 8 July 2013 at 18:15, Mark Watson wrote:

> Hi everyone,
>  
> Apologies if this has been asked before.
>  
> I have a function which returns Promise<any> and I am having trouble getting the <any> to appear in the respec-generated IDL. In my source, I write 'Promise&lt;any&gt;' but in the output I just get 'Promise'.  
>  
> Any ideas ?
That syntax is not supported in WebIDL (and it's not part of Promises as currently spec'ed)… also, Promise<any> is not particularly helpful (so you might as well omit it regardless).


  
  
--  
Marcos Caceres

Received on Tuesday, 9 July 2013 02:18:21 UTC