import { BasketActionTypes , IBasketAdd } from "./BasketTypes" ; import { IProduct } from "./ProductsData" ; export const addToBasket = ( product ) : IBasketAdd => ( { product , type : BasketActionTypes . ADD } ) ;