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(types): add "array of array key-value pairs" as a argument option for "query.sort()" #12483

Merged
merged 4 commits into from Sep 29, 2022

Conversation

hasezoey
Copy link
Collaborator

Summary

This PR adds a type for the "array of array with key-value pairs" as a possible type
also adds some more documentation about this way to the jsdoc

fixes #12434
was broken by #11852

@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Sep 29, 2022
@hasezoey hasezoey added this to the 6.6.3 milestone Sep 29, 2022
@hasezoey hasezoey changed the title fix(types): add "array of key-value pairs" as a argument option for "query.sort()" fix(types): add "array of array key-value pairs" as a argument option for "query.sort()" Sep 29, 2022
lib/query.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

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

One potential typo, but overall LGTM.
Thanks 👍

lib/query.js Outdated Show resolved Hide resolved
@hasezoey
Copy link
Collaborator Author

Force pushed to fix a commit message and a oversight in the test types

@AbdelrahmanHafez AbdelrahmanHafez merged commit cb186cc into Automattic:master Sep 29, 2022
@hasezoey hasezoey deleted the fixSortArray branch September 29, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

find.sort() params no longer accept an array
2 participants