Re: [heycam/webidl] How to tell the type of "construct a callback function"? (#557)

> Yeah, but already-typed argument list is provided runtime only.

That's fair.  I think saying that the types are the same as the types used for invoke would make sense, fwiw.

Again, for the one use case we have so far there are no arguments and the return type used in practice is either "any" or "Element" depending on how you want to interpret the `SameValue` sleight of hand that uses an ES value on one side and an IDL value on the other...  Which one is used will affect what sort of exception (TypeError vs an InvalidStateError DOMException) is thrown, of course.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/557#issuecomment-391041723

Received on Tuesday, 22 May 2018 15:48:50 UTC