Describe the bug
v22 and specifically #2619 remove the export for SessionCreateParams
This was no documented and resulted in breaking existing imports.
To Reproduce
- Using v21, use the type
Stripe.Checkout.SessionCreateParams
- Upgrade to v22
- Observe that the moved
Checkout.SessionCreateParams is not exported
Expected behavior
SessionCreateParams is exported from src/resources/Checkout/Sessions.ts
Code snippets
// workaround:
type CheckoutSessionCreateParams = Stripe["checkout"]["sessions"] extends {
create(params?: infer T, options?: unknown): unknown;
}
? T
: never;
OS
macOS
Node version
Node v24
Library version
stripe 22.0.0
API version
2026-03-25.dahlia
Additional context
No response
Describe the bug
v22 and specifically #2619 remove the export for SessionCreateParams
This was no documented and resulted in breaking existing imports.
To Reproduce
Stripe.Checkout.SessionCreateParamsCheckout.SessionCreateParamsis not exportedExpected behavior
SessionCreateParams is exported from
src/resources/Checkout/Sessions.tsCode snippets
OS
macOS
Node version
Node v24
Library version
stripe 22.0.0
API version
2026-03-25.dahlia
Additional context
No response