Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Promise-returning functions should return Promise<T> #70

Closed
jyasskin opened this issue Feb 11, 2015 · 1 comment
Closed

Promise-returning functions should return Promise<T> #70

jyasskin opened this issue Feb 11, 2015 · 1 comment

Comments

@jyasskin
Copy link
Member

The WebIDL Promise type is parametrized by the type that it's expected to be resolved with. For example, NFC.findAdapters() should return Promise<sequence<NfcAdapter>>, not just Promise.

@zolkis
Copy link
Contributor

zolkis commented Feb 11, 2015

I always wondered why it hasn't been there earlier :). Good to see this is supported. I will fix these.

@zolkis zolkis closed this as completed in bee726f Feb 11, 2015
kenchris pushed a commit that referenced this issue Feb 11, 2015
Fixed #70: return Promise with type information
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants