-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
🦋 Changeset detectedLatest commit: 95f1e31 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
The problem seems to stem from the spec, could this have been a limitation of WebIDL? https://rdf.js.org/dataset-spec/#quadfilteriteratee-interface |
Possibly. And apparently it got translated to TS verbatim |
@@ -0,0 +1,5 @@ | |||
--- | |||
"@rdfjs/types": minor |
There was a problem hiding this comment.
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
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.