-
Notifications
You must be signed in to change notification settings - Fork 4.5k
TypeScript: Converts HtmlEntities Package to TS #69326
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
TypeScript: Converts HtmlEntities Package to TS #69326
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Thank you. This looks great.
Let us also remove the types in JSDoc params and return types
- * @param {string} html String that contain HTML entities.
+ * @param html String that contain HTML entities.
6b2c1c4
to
fab8069
Compare
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.
This looks good now. Thank you for implementing the suggestions.
Hey @manzoorwanijk , Firstly thanks for the review! I was thinking to make similar conversions for the icons package. I will tag you for a quick review once I am ready with the PR. |
I see that E2E tests are failing. Can we please do a trunk merge? |
Head branch was pushed to by a user without write access
62e7f9e
to
5931ed3
Compare
Hey @manzoorwanijk , Thank you for the follow-up. I have updated the PR with the latest trunk and now all the CI tests seem to be passing. Please ship the PR. PS: I have also completed work on the migrating icons package to TypeScript, please have a look at it too. #70456 |
@manzoorwanijk To ensure your contributions are properly credited, when merging the PR, you may want to add the contributor list in this comment to the description. Thank you! |
Ah, yes, I forgot to do that. I will keep that in mind for the future. Thank you. |
* feat: Convert html-entites to ts * feat: Update tests to ts * fix: Remove type for this _decodeTextArea * fix: Remove return type for decoded string in decodeEntities * fix: Remove function doc comments type inferences
What?
Part of: #67691
Migrating the HtmlEntities package to Typescript.
Why?
Type safety.
How?
Testing Instructions
Typecheck and unit tests.