Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jojo-stripe committed Nov 3, 2023
1 parent 73f6a9b commit f195873
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
23 changes: 0 additions & 23 deletions src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ export const componentNameMapping: Record<
ConnectElementTagName,
ConnectElementHTMLName
> = {
<<<<<<< HEAD
"account-onboarding": "stripe-connect-account-onboarding"
=======
payments: "stripe-connect-payments",
payouts: "stripe-connect-payouts",
"payment-details": "stripe-connect-payment-details",
"account-onboarding": "stripe-connect-account-onboarding",
"payment-method-settings": "stripe-connect-payment-method-settings",
"account-management": "stripe-connect-account-management",
"notification-banner": "stripe-connect-notification-banner",
"instant-payouts": "stripe-connect-instant-payouts"
>>>>>>> aa7bc71 (Remove additional null typing and additional exports from package (#65))
};

type StripeConnectInstanceExtended = StripeConnectInstance & {
Expand Down Expand Up @@ -123,11 +112,7 @@ export const initStripeConnect = (
initParams: IStripeConnectInitParams
): StripeConnectInstanceExtended => {
const stripeConnectInstance = stripePromise.then(wrapper =>
<<<<<<< HEAD
wrapper?.initialize(initParams)
=======
wrapper.initialize(initParams)
>>>>>>> aa7bc71 (Remove additional null typing and additional exports from package (#65))
);

return {
Expand All @@ -145,23 +130,15 @@ export const initStripeConnect = (
},
update: updateOptions => {
stripeConnectInstance.then(instance => {
<<<<<<< HEAD
instance?.update(updateOptions);
=======
instance.update(updateOptions);
>>>>>>> aa7bc71 (Remove additional null typing and additional exports from package (#65))
});
},
debugInstance: () => {
return stripeConnectInstance;
},
logout: () => {
return stripeConnectInstance.then(instance => {
<<<<<<< HEAD
instance?.logout();
=======
instance.logout();
>>>>>>> aa7bc71 (Remove additional null typing and additional exports from package (#65))
});
}
};
Expand Down
16 changes: 0 additions & 16 deletions types/shared.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,20 +378,4 @@ export interface StripeConnectInstance {
/**
* Tagnames to be used with the `create` method of the Connect instance.
*/
<<<<<<< HEAD
export type ConnectElementTagName = "account-onboarding";

export declare const findScript: () => HTMLScriptElement | null;

export declare const loadScript: () => Promise<any | null>;
=======
export type ConnectElementTagName =
| "payments"
| "payouts"
| "payment-details"
| "account-onboarding"
| "payment-method-settings"
| "account-management"
| "notification-banner"
| "instant-payouts";
>>>>>>> aa7bc71 (Remove additional null typing and additional exports from package (#65))

0 comments on commit f195873

Please sign in to comment.