Skip to content

Commit 68cb65f

Browse files
fix(js-api-client): remove void
1 parent 07a1e8d commit 68cb65f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@crystallize/js-api-client",
33
"license": "MIT",
4-
"version": "2.6.0",
4+
"version": "2.6.1",
55
"author": "Crystallize <[email protected]> (https://crystallize.com)",
66
"contributors": [
77
"Sébastien Morel <[email protected]>",

src/core/editCart.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type Deps = {
66
apiClient: ClientInterface;
77
};
88

9-
export const placeCart = async (cartId: string, { apiClient }: Deps, extraQuery?: any): Promise<void> => {
9+
export const placeCart = async (cartId: string, { apiClient }: Deps, extraQuery?: any) => {
1010
const mutation = {
1111
place: {
1212
__args: {
@@ -75,7 +75,7 @@ export const setCartMeta = async (
7575
merge: Boolean,
7676
{ apiClient }: Deps,
7777
extraQuery?: any,
78-
): Promise<void> => {
78+
) => {
7979
const mutation = {
8080
setMeta: {
8181
__args: {
@@ -97,7 +97,7 @@ export const setCartCustomer = async (
9797
isGuest: boolean,
9898
{ apiClient }: Deps,
9999
extraQuery?: any,
100-
): Promise<void> => {
100+
) => {
101101
const mutation = {
102102
setCustomer: {
103103
__args: {

0 commit comments

Comments
 (0)