Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

iAPI: Minor fixes to the Interactivity and Interactivity Router comments - #11

Merged
luisherranz merged 9 commits into
interactivity-apifrom
update/iapi-comments-format
Apr 9, 2025
Merged

luisherranz merged 9 commits into
interactivity-apifrom
update/iapi-comments-format

Conversation

@DAreRodz

@DAreRodz DAreRodz commented Apr 3, 2025

Copy link
Copy Markdown
Collaborator

What?

Update TSDoc comments to use third-person singular verbs. Also, fix typos and other format issues.

How?

Robots (mostly) did it. 🤖

@DAreRodz
DAreRodz requested a review from SantosGuillamot April 3, 2025 15:18
@DAreRodz
DAreRodz requested a review from luisherranz as a code owner April 3, 2025 15:18
@github-actions

github-actions Bot commented Apr 3, 2025 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: DAreRodz <darerodz@git.wordpress.org>
Co-authored-by: luisherranz <luisherranz@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@luisherranz

Copy link
Copy Markdown
Collaborator

I've taken a quick look and see that there are still some. Is it simply a partial improvement, or should all the comments have been corrected?

For example:

@DAreRodz

DAreRodz commented Apr 4, 2025

Copy link
Copy Markdown
Collaborator Author

I've taken a quick look and see that there are still some. Is it simply a partial improvement, or should all the comments have been corrected?

I see, I see. Well, from the examples in the WordPress' JavaScript Documentation Standard, I understood that verbs in inline comments can be in infinitive (e.g. this):

// Extract the array values.

The usage of third-person singular verbs seems to be reserved for functions and closures (as stated here):

Functions and closures are third-person singular elements, meaning third-person singular verbs should be used to describe what each does.

However, it's true that there are still TSDocs using the infinitive instead of third-person singular verbs. I'll correct those.

@luisherranz

Copy link
Copy Markdown
Collaborator

I understood that verbs in inline comments can be in infinitive

Hmm... that's true. I was using third-person singular verbs everywhere.

@luisherranz luisherranz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks David! (and the robot lords 🤖)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants