UNPKG
ato-product-card
Version:
latest (1.0.0-rc)
1.0.0-rc
0.0.1
This is a test package for deployment on NPM
niveus.jp
atowa/ato-product-card
ato-product-card
/
dist
/
hooks
/
useShoppingCart.d.ts
11 lines
(10 loc)
•
306 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
Product
,
ProductInCart
}
from
'../interfaces/interfaces'
;
export
declare
const
useShoppingCart
:
() =>
{
shoppingCart
: { [
key
:
string
]:
ProductInCart
; };
onProductCountChange
:
(
{ count, product, }: { count:
number
; product: Product; }
) =>
void
; };