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

Model JSDOC Touch-Up #12086

Merged
merged 21 commits into from Jul 16, 2022
Merged

Model JSDOC Touch-Up #12086

merged 21 commits into from Jul 16, 2022

Conversation

hasezoey
Copy link
Collaborator

Summary

This PR Improves the JSDOC of lib/model.js.

Changes include:

  • fix missing types from @param tags
  • changes some examples from callback-style to await-style
  • moves options to @param tags
  • change some things to make the style consistent
  • renames parameter o to opts for mapReduce to be more clear what that parameter does

There are some added TODO's, because i was not sure what type they were

This is to make it more obvious to what this parameter does
Copy link
Collaborator Author

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

TODO notes

lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@vkarpov15 vkarpov15 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, just had several small suggestions

lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
lib/model.js Outdated Show resolved Hide resolved
@hasezoey hasezoey requested a review from vkarpov15 July 15, 2022 09:56
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@vkarpov15 vkarpov15 added this to the 6.4.5 milestone Jul 16, 2022
@vkarpov15 vkarpov15 merged commit 1306d00 into Automattic:master Jul 16, 2022
@hasezoey hasezoey deleted the modelJSDOCTouchup branch July 17, 2022 09:55
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