Skip to content

Commit

Permalink
fix(ui): export Checkout types
Browse files Browse the repository at this point in the history
  • Loading branch information
roushou committed Jul 8, 2024
1 parent 45d0bba commit ab61a17
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-squids-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbasejs/commerce": patch
---

fix(commerce): export Checkout types
6 changes: 3 additions & 3 deletions packages/commerce/src/checkout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as http from "@coinbasejs/utils/http";
import type { RequestConfig } from "./client";
import { BASE_URL } from "./constants";

type GetCheckoutResponse = {
export type GetCheckoutResponse = {
data: Checkout;
warning: string[];
};
Expand All @@ -19,7 +19,7 @@ export async function getCheckout(
});
}

type GetCheckoutsResponse = {
export type GetCheckoutsResponse = {
data: Checkout[];
warning: string[];
};
Expand All @@ -35,7 +35,7 @@ export async function getCheckouts(
});
}

type CheckoutRequestInfo =
export type CheckoutRequestInfo =
| "name"
| "email"
| "address"
Expand Down
3 changes: 3 additions & 0 deletions packages/commerce/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ export type {
export { createCheckout, getCheckout, getCheckouts } from "./checkout";
export type {
CheckoutPricingType,
CheckoutRequestInfo,
CreateCheckoutParameters,
CreateCheckoutResponse,
GetCheckoutResponse,
GetCheckoutsResponse,
} from "./checkout";
export { getEvent, getEvents } from "./events";
export type { Event, GetEventResponse, GetEventsResponse } from "./events";

0 comments on commit ab61a17

Please sign in to comment.