Skip to content

Commit

Permalink
WT-1727 Export smart checkout types (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
imx-mikhala committed Oct 4, 2023
1 parent c03355f commit 5c353cc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 15 additions & 3 deletions packages/checkout/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ export {
CHECKOUT_API_BASE_URL,
CheckoutStatus,
ExchangeType,
FundingStepType,
GasEstimateType,
GasTokenType,
ItemType,
NetworkFilterTypes,
RoutingOutcomeType,
TokenFilterTypes,
TransactionOrGasType,
WalletFilterTypes,
WalletProviderName,
} from './types';
export type {
AllowedNetworkConfig,
AvailableRoutingOptions,
BalanceDelta,
BuyOrder,
BuyParams,
BuyResult,
Expand All @@ -28,12 +32,17 @@ export type {
ConnectParams,
ConnectResult,
DexConfig,
FeePercentage,
NativeItemRequirement,
ERC20ItemRequirement,
ERC721ItemRequirement,
FeePercentage,
FeeToken,
FiatRampParams,
FulfillmentTransaction,
FundingItem,
FundingRoute,
FundingRouteFeeEstimate,
FundingStep,
GasAmount,
GasEstimateBridgeToL2Result,
GasEstimateParams,
Expand All @@ -51,23 +60,26 @@ export type {
GetTokenAllowListResult,
GetWalletAllowListParams,
GetWalletAllowListResult,
ItemRequirement,
NativeItemRequirement,
ItemBalance,
NetworkFilter,
NetworkInfo,
OrderFee,
RemoteConfiguration,
RoutingOutcome,
SellOrder,
SellParams,
SellResult,
SellToken,
SendTransactionParams,
SendTransactionResult,
SmartCheckoutParams,
SmartCheckoutResult,
SmartCheckoutRouter,
SwitchNetworkParams,
SwitchNetworkResult,
TokenFilter,
TokenInfo,
TransactionRequirement,
WalletFilter,
WalletInfo,
} from './types';
Expand Down
4 changes: 2 additions & 2 deletions packages/checkout/sdk/src/types/smartCheckout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export type RoutesFound = {
* @property {RoutingOutcomeType.NO_ROUTES_FOUND} type - Indicates that no funding routes were found for the transaction.
* @property {string} message - The message indicating why no funding routes were found.
*/
type NoRoutesFound = {
export type NoRoutesFound = {
type: RoutingOutcomeType.NO_ROUTES_FOUND,
message: string
};
Expand All @@ -441,7 +441,7 @@ type NoRoutesFound = {
* @property {RoutingOutcomeType.NO_ROUTE_OPTIONS} type - Indicates that no routing options were available for the transaction.
* @property {string} message - The message indicating why no routing options were available.
*/
type NoRouteOptions = {
export type NoRouteOptions = {
type: RoutingOutcomeType.NO_ROUTE_OPTIONS,
message: string
};
Expand Down

0 comments on commit 5c353cc

Please sign in to comment.