fix(stripe): remove TS error suppression updating getCheckoutSessionParams (#5602)

This commit is contained in:
Mohamad Mohebifar
2025-10-27 12:21:53 -07:00
committed by GitHub
parent 3948e313cd
commit 77beb04bbc
2 changed files with 2 additions and 1 deletions

View File

@@ -540,7 +540,6 @@ export const stripe = <O extends StripeOptions>(options: O) => {
subscription,
},
ctx.request,
//@ts-expect-error
ctx,
);

View File

@@ -247,6 +247,7 @@ export type SubscriptionOptions = {
* parameters for session create params
*
* @param data - data containing user, session and plan
* @param req - the request object
* @param ctx - the context object
*/
getCheckoutSessionParams?: (
@@ -256,6 +257,7 @@ export type SubscriptionOptions = {
plan: StripePlan;
subscription: Subscription;
},
req: GenericEndpointContext["request"],
ctx: GenericEndpointContext,
) =>
| Promise<{