linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
566 stars 146 forks source link

Typescript: first argument of serialize() should be optional #450

Open eroux opened 4 years ago

eroux commented 4 years ago

The function serialize works very fine when the first argument is undefined (as long as the third one is provided). i think it would be helpful if the Typescript reflected that by not mandating the first argument here