dff4772d82
* 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> |
||
---|---|---|
.. | ||
utils.js |