Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BindingsFactory's fromBindings type #1288

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

Peeja
Copy link
Contributor

@Peeja Peeja commented Nov 11, 2023

My project was reporting a type failure in BindingsFactory.d.ts, so I dug in to investigate. It was because fromBindings() needs to accept any RDF.Bindings, not just Comunica Bindings.

It looks like the reason that wasn't failing in Comunica itself is that strictFunctionTypes was off. #1233 tried to turn that back on and address various issues it was covering up. But as noted there, it wasn't quite that simple to turn on. For now, this addresses the original type issue I hit.

To implement `RDF.BindingsFactory`, `fromBindings` must accept any
`RDF.Bindings`. The implementation already does, but the type doesn't.
@Peeja Peeja requested a review from a team as a code owner November 11, 2023 19:43
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6836209157

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 6666205933: 0.0%
Covered Lines: 8248
Relevant Lines: 8248

💛 - Coveralls

Copy link
Member

@rubensworks rubensworks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @Peeja!

@rubensworks rubensworks merged commit 3cc20f7 into comunica:master Nov 14, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants