- From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
- Date: Wed, 28 Aug 2019 07:51:12 +0000
- To: public-web-nfc@w3.org
kenchris has just created a new issue for https://github.com/w3c/web-nfc: == toJSON should return any (which includes undefined) == `toJSON` for different objects in the web platform returns different things, some like `performance.toJSON` knows that it will always return structured data (dictionary) and thus returns `object` Just like the fetch spec we might return anything as and should change the signature to `[NewObject] any toJSON()` Fetch uses `[NewObject] Promise<any> json();` for comparison Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/310 using your GitHub account
Received on Wednesday, 28 August 2019 07:51:15 UTC