Skip to content

Commit

Permalink
feat: exporting interface InitialState and CartProviderState (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosantosdev authored Mar 13, 2023
1 parent f3f5d02 commit c5e99be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface Item {
[key: string]: any;
}

interface InitialState {
export interface InitialState {
id: string;
items: Item[];
isEmpty: boolean;
Expand All @@ -24,7 +24,7 @@ export interface Metadata {
[key: string]: any;
}

interface CartProviderState extends InitialState {
export interface CartProviderState extends InitialState {
addItem: (item: Item, quantity?: number) => void;
removeItem: (id: Item["id"]) => void;
updateItem: (id: Item["id"], payload: object) => void;
Expand Down

0 comments on commit c5e99be

Please sign in to comment.