Skip to content

Code Quality: Remove any type assertions from notices store dispatches#725

Merged
dkotter merged 4 commits into
WordPress:developfrom
yogeshbhutkar:fix/remove-any-types
Jun 17, 2026
Merged

Code Quality: Remove any type assertions from notices store dispatches#725
dkotter merged 4 commits into
WordPress:developfrom
yogeshbhutkar:fix/remove-any-types

Conversation

@yogeshbhutkar

@yogeshbhutkar yogeshbhutkar commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

What, Why, and How?

This PR removes any type assertions around the notices store now that the upstream Gutenberg notices package has been converted to TypeScript in WordPress/gutenberg#67670.

The current usage still treats these notice store dispatches as untyped, which hides useful TypeScript coverage and weakens editor DX. Using the package’s actual types makes the implementations clearer, improves autocomplete, and lets TypeScript catch incorrect notice usage earlier.

This PR intentionally keeps the scope limited to the notices package so the change is easier to review. If there is agreement on this direction, I’m happy to open a follow-up tracking issue for similar cleanup across other typed stores and packages.

Use of AI Tools

AI assistance: No

Changelog Entry

Code Quality - Remove any type assertions from notices store dispatches

Open WordPress Playground Preview

@yogeshbhutkar yogeshbhutkar marked this pull request as ready for review June 15, 2026 11:37
@github-actions

github-actions Bot commented Jun 15, 2026

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: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>

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

@yogeshbhutkar yogeshbhutkar force-pushed the fix/remove-any-types branch from 3895af8 to 2669113 Compare June 16, 2026 11:41
@dkotter dkotter added this to the 1.1.0 milestone Jun 17, 2026
@dkotter dkotter merged commit 55fbab9 into WordPress:develop Jun 17, 2026
22 checks passed
@yogeshbhutkar yogeshbhutkar deleted the fix/remove-any-types branch June 18, 2026 03:06
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.

2 participants