Skip to content

Instantly share code, notes, and snippets.

@timdeschryver
Created June 6, 2018 17:01
Show Gist options
  • Save timdeschryver/aef1b0d01e9103b6ec29adcd48313b83 to your computer and use it in GitHub Desktop.
Save timdeschryver/aef1b0d01e9103b6ec29adcd48313b83 to your computer and use it in GitHub Desktop.
export class AddToCart {
static readonly type = '[Product List] Add to cart';
constructor(public payload: { sku: string }) {}
}
export class RemoveFromCart {
static readonly type = '[Product List] Remove from cart';
constructor(public payload: { sku: string }) {}
}
export class EmptyCart {
static readonly type = '[Cart] Empty cart';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment