Convert product-elements/image to TypeScript #7572
Convert product-elements/image to TypeScript #7572
Conversation
… .editorconfig file enforces 2 spaces.
Jobs renaming.
The release ZIP for this PR is accessible via:
|
Size Change: +216 B (0%) Total Size: 970 kB
ℹ️ View Unchanged
|
…thub.com:woocommerce/woocommerce-blocks into update/7091-convert-product-elements-image-to-TS
…thub.com:woocommerce/woocommerce-blocks into update/7091-convert-product-elements-image-to-TS
Thanks for your review, @sunyatasattva. I addressed most of your feedback, but left two questions where I'm not sure what you meant. I also addressed all TS errors, except two errors in |
Thank you for addressing the feedback! For the TS errors in the import, I wonder if we should ts-ignore them. That's a genuine question because on the code I'm working on I have literally the same situation (and did not |
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.
Responded to your questions. Pre-approving to unblock you when you feel ready.
…thub.com:woocommerce/woocommerce-blocks into update/7091-convert-product-elements-image-to-TS
…thub.com:woocommerce/woocommerce-blocks into update/7091-convert-product-elements-image-to-TS
Thanks for your reviews, @wavvves and @sunyatasattva! With all changes approved, no new introduces TS errors and all tests passed, I'm going to merge this PR now. 🎉 |
Fixes #7091
Currently, the
product-elements/image
is still written in JS and is using prop-types for type checking. This PR aims to convertproduct-elements/image
to TypeScript.Testing
User Facing Testing
Single Product block
to it.Product Image inner block
is still visible.