SPARQL.js
SPARQL.js copied to clipboard
Update typings to RDF/JS
https://github.com/RubenVerborgh/SPARQL.js/issues/73#issuecomment-647374395
@RubenVerborgh I was having a look at the current typings to see whether I can make a PR for this. Looks to me like the change to be made should focus around the following definition of the Term type:
export type Term = string & { __termBrand: string; };
Do you think it would be enough to change this to use RDF/JS' typings? Or, would it be better to also change the Triple interface to better express which kind of term (named node, literal, ...) can be used as the subject / predicate / object of a triple?
I think regular RDF/JS should suffice indeed, thanks!
The new typings with RDF/JS terms are merged to DefinitelyTyped 🎉 https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46159
Thank you @AlexeyMz !