Repository navigation
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 |
tyxla
left a comment
There was a problem hiding this comment.
This looks good to me, thanks! 🚢
Changes proposed in this Pull Request
This updates our dependency on the
@wordpress/componentstype definitions (this is actually@types/wordpress__componentssince it uses DefinitelyTyped, not the package itself) to 14.0.9 which includes the types forComboboxControl,ToolbarGroup,Guide,TipandVisuallyHiddenthanks to the following PRs:Since we use all of the above components in calypso, this will fix our remaining TypeScript errors.
Note: the
editing-toolkitapp uses theTipcomponent, 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 usingTipwith asizeprop 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.