restaurant-menu-challenge - v0.1.0
Preparing search index...
types
CartStore
Type Alias CartStore
Store global do carrinho de compras.
type
CartStore
=
{
addItem
:
(
item
:
CartItem
)
=>
void
;
calculateTotal
:
()
=>
void
;
changeQuantity
:
(
id
:
number
,
quantity
:
number
)
=>
void
;
clearCart
:
()
=>
void
;
isLoading
:
boolean
;
items
:
CartItem
[]
;
removeItem
:
(
id
:
number
)
=>
void
;
total
:
number
;
}
Index
Properties
add
Item
calculate
Total
change
Quantity
clear
Cart
is
Loading
items
remove
Item
total
Properties
add
Item
addItem
:
(
item
:
CartItem
)
=>
void
calculate
Total
calculateTotal
:
()
=>
void
change
Quantity
changeQuantity
:
(
id
:
number
,
quantity
:
number
)
=>
void
clear
Cart
clearCart
:
()
=>
void
is
Loading
isLoading
:
boolean
items
items
:
CartItem
[]
remove
Item
removeItem
:
(
id
:
number
)
=>
void
total
total
:
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
add
Item
calculate
Total
change
Quantity
clear
Cart
is
Loading
items
remove
Item
total
restaurant-menu-challenge - v0.1.0
Loading...
Store global do carrinho de compras.