woocommerce/plugins/woocommerce-blocks/assets/js/previews
Seghir Nadir dff4772d82 Add types to hooks (https://github.com/woocommerce/woocommerce-blocks/pull/3913)
* type hooks

* type useStoreCart

* type the rest

* Remove old typedefs

* Specify that the return value from useDispatch is a Promise< void >

* Change return type of removeItem

* If ref.current is undefined then return value without checking shallowEq

* Revert "Specify that the return value from useDispatch is a Promise< void >"

This reverts commit 97863bd584d38024398913a79ce63fa6b964846a.

* Remove type parameter from removeItem and changeCartItemQuantity

* Change action return type to cater for generator functions

* Remove type parameter from addItemToCart

* Add mapped types file to help with actions that are generator functions

* Include addItemToCart in return types of cart actions

* Use custom DispatchFromMap

* Add todos for why we've redefined functionality that exists in Calypso

* update types

* remove fromEntries and use polyfill

* address review

* ignore ts no shadow

* fix test errors

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
2021-03-10 15:03:26 +00:00
..
cart.ts Add types to hooks (https://github.com/woocommerce/woocommerce-blocks/pull/3913) 2021-03-10 15:03:26 +00:00
categories.js Single Product Block Edit Mode (https://github.com/woocommerce/woocommerce-blocks/pull/2577) 2020-05-28 12:41:10 +01:00
grid-block.js Add grid block previews using an SVG image (https://github.com/woocommerce/woocommerce-blocks/pull/1118) 2019-11-15 15:16:18 +00:00
index.js Use real previews for the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/2992) 2020-08-13 14:24:51 +01:00
products.js Remove API summaries in favour of client side code (https://github.com/woocommerce/woocommerce-blocks/pull/2387) 2020-05-06 11:30:15 +01:00
reviews.js Single Product Block Edit Mode (https://github.com/woocommerce/woocommerce-blocks/pull/2577) 2020-05-28 12:41:10 +01:00
saved-payment-methods.js Fixes regression with payment method validation (https://github.com/woocommerce/woocommerce-blocks/pull/2450) 2020-05-10 19:41:10 -04:00
shipping-rates.ts Add types to hooks (https://github.com/woocommerce/woocommerce-blocks/pull/3913) 2021-03-10 15:03:26 +00:00
single-product-block.js Single Product Block Edit Mode (https://github.com/woocommerce/woocommerce-blocks/pull/2577) 2020-05-28 12:41:10 +01:00