[web-nfc] toJSON should return any (which includes undefined) (#310)

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