Re: [web-nfc] Definitions of NDEFMessageInit and NDEFRecordInit violates Web IDL spec (#538)

I am curious about the reasoning behind the WebIDL specification intentionally banning recursive types. As a workaround we could define `NDEFRecordDataSource` as follows which should only trivially change the code developers need to write when creating embedded records,

```
typedef (DOMString or BufferSource or NDEFMessage) NDEFRecordDataSource;
```

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/538#issuecomment-579304567 using your GitHub account

Received on Tuesday, 28 January 2020 15:36:33 UTC