-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Currently simplifySparqlResults(sparqlResults, {minimize: bool}) exists.
The problem here is that the minimize argument only works when the query returns exactly one variable. If that's not the case the minimize argument is ignored.
| if (vars.length === 1 && options.minimize === true) { |
This means that the return type is not clear at compile time and only at runtime. Therefore TypeScript can not help much here. This could be more strict with either an error in case of more than one variable or (better in my opinion) a dedicated function for this.
This will be breaking either way.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels