Skip to content

Simplify callbacks #21

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

Merged
merged 5 commits into from
Jul 10, 2021
Merged

Conversation

tpluscode
Copy link
Contributor

Prompted by Blake's message on Gitter I thought I would take a second look and apparently the current types are imperfect

By inlining the callback/iteratee functions, the correct type of dataset argument can be used.

@changeset-bot
Copy link

changeset-bot bot commented Jul 6, 2021

🦋 Changeset detected

Latest commit: 95f1e31

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@rdfjs/types Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -0,0 +1,5 @@
---
"@rdfjs/types": minor
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure whether this should be minor or patch. It's a significant change but maybe still just a bug fix?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm ok with classifying it as minor

@blake-regalia
Copy link
Contributor

The problem seems to stem from the spec, could this have been a limitation of WebIDL? https://rdf.js.org/dataset-spec/#quadfilteriteratee-interface

@tpluscode
Copy link
Contributor Author

Possibly. And apparently it got translated to TS verbatim

@@ -0,0 +1,5 @@
---
"@rdfjs/types": minor
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm ok with classifying it as minor

@blake-regalia blake-regalia merged commit fdc178c into rdfjs:master Jul 10, 2021
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.

2 participants