-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update @wordpress/components type definitions to 14.0.9 #60002
Update @wordpress/components type definitions to 14.0.9 #60002
Conversation
Link to Calypso live: https://calypso.live?image=registry.a8c.com/calypso/app:build-24561 |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
This PR modifies the release build for editing-toolkit To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-mMA-p2 |
The failing build reads:
...which is weird because none of the changes between @types/wordpress__components 14.0.5 and 14.0.9 should have touched Also, those seem to be warnings and not errors so I'm not sure why they become errors at the bottom. |
I'm assuming that WordPress/gutenberg#37578 fixed this, so if we upgrade the version of |
Interesting! Good find. However, it looks like we're already using the latest version, 19.2.0: Line 181 in a1b9043
|
Ah. Yep, so I guess we need another DT PR then 😉 |
🤔 I was about to do that, but then I looked and apparently no other DT types use |
I see. In that case, we can specify the peer dependency as an exception in yarn's |
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 to me, thanks! 🚢
Changes proposed in this Pull Request
This updates our dependency on the
@wordpress/components
type definitions (this is actually@types/wordpress__components
since it uses DefinitelyTyped, not the package itself) to 14.0.9 which includes the types forComboboxControl
,ToolbarGroup
,Guide
,Tip
andVisuallyHidden
thanks to the following PRs:Since we use all of the above components in calypso, this will fix our remaining TypeScript errors.
Note: the
editing-toolkit
app uses theTip
component, which works in TypeScript because that package adds its own type definition. Because this PR also adds a (more correct) type definition, it creates a type error in that package. It also creates an additional type error because that package is usingTip
with asize
prop that doesn't exist in the component's definition. Therefore, this PR removes both the override and the use ofsize
.Testing instructions
Verify that this doesn't change any behavior and affects only types.