W3C home > Mailing lists > Public > public-nfc@w3.org > February 2015

[nfc] Promise-returning functions should return Promise<T>

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Feb 2015 05:52:30 +0000
To: public-nfc@w3.org
Message-ID: <issues.opened-57279333-1423633950-sysbot+gh@w3.org>
jyasskin has just created a new issue for https://github.com/w3c/nfc:

= Promise-returning functions should return Promise<T> =
The [WebIDL Promise type](http://heycam.github.io/webidl/#idl-promise)
 is parametrized by the type that it's expected to be resolved with. 
For example, 
[`NFC.findAdapters()`](http://w3c.github.io/nfc/index.html#the-nfc-interface)
 should return `Promise<sequence<NfcAdapter>>`, not just `Promise`.

See https://github.com/w3c/nfc/issues/70
Received on Wednesday, 11 February 2015 05:52:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 05:52:39 UTC