Re: [ServiceWorker] Response or Promise<Response> is invalid Web IDL (#724)

> Is the reason the following?

Yes

> Is there any reason Promise types shouldn't be distinguishable within union's member types?

Because any other type that you pass will just be cast to a promise immediately (via `Promise.resolve`, basically). This happens automatically via Web IDL.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/724#issuecomment-124559229

Received on Friday, 24 July 2015 15:30:09 UTC