Skip to content

TypeScript: migrate annotations package to TS#70602

Open
kushagra-goyal-14 wants to merge 4 commits intoWordPress:trunkfrom
kushagra-goyal-14:try/migrate-annotations-ts
Open

TypeScript: migrate annotations package to TS#70602
kushagra-goyal-14 wants to merge 4 commits intoWordPress:trunkfrom
kushagra-goyal-14:try/migrate-annotations-ts

Conversation

@kushagra-goyal-14
Copy link
Copy Markdown
Contributor

What?

Part of #67691

Migrating the annotations package to TypeScript.

Why?

To enhance DX and add type safety.

How?

By porting the code and tests to TypeScript.

Testing Instructions

Typecheck and unit tests.

@kushagra-goyal-14 kushagra-goyal-14 marked this pull request as ready for review July 3, 2025 11:14
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 3, 2025

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: kushagra-goyal-14 <kush123@git.wordpress.org>
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>

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

@t-hamano t-hamano mentioned this pull request Jul 4, 2025
40 tasks
@t-hamano t-hamano added [Type] Code Quality Issues or PRs that relate to code quality [Feature] Annotations Adding annotation functionality labels Jul 4, 2025
Comment on lines +19 to +20
const addAnnotationClassName = ( OriginalComponent: any ) => {
return ( withSelect as any )(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would prefer to avoid these two any here, which means, we probably should first convert withSelect to typescript.

@manzoorwanijk
Copy link
Copy Markdown
Member

What is the status here?

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

Labels

[Feature] Annotations Adding annotation functionality [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants