Skip to content

Fixed nested service param exports in the Stripe namespace#2664

Merged
prathmesh-stripe merged 2 commits intomasterfrom
prathmesh/fix-nested-param-exports
Apr 8, 2026
Merged

Fixed nested service param exports in the Stripe namespace#2664
prathmesh-stripe merged 2 commits intomasterfrom
prathmesh/fix-nested-param-exports

Conversation

@prathmesh-stripe
Copy link
Copy Markdown
Contributor

@prathmesh-stripe prathmesh-stripe commented Apr 7, 2026

Why?

Param types for resources nested under service namespaces (e.g. Stripe.Checkout.SessionCreateParams, Stripe.Treasury.CreditReversalListParams) were not re-exported through the parent namespace's index.ts. This meant users had to reach into internal module paths to access these types, or couldn't access them at all through the top-level Stripe namespace. This meant a broken developer experience for any resource that lives under a grouped namespace.

What?

  • Re-export all param types (e.g. *ListParams, *CreateParams, *RetrieveParams, *UpdateParams, etc.) from each namespace's index.ts by importing the child module's namespace and creating type aliases in the parent declare namespace block.
  • Adds type-check assertions in testProjects/types/typescriptTest.ts to verify the nested param types are accessible.

See Also

#2662
#2658

Changelog

@prathmesh-stripe prathmesh-stripe marked this pull request as ready for review April 7, 2026 23:55
@prathmesh-stripe prathmesh-stripe requested a review from a team as a code owner April 7, 2026 23:55
@prathmesh-stripe prathmesh-stripe requested review from jar-stripe and removed request for a team April 7, 2026 23:55
Copy link
Copy Markdown
Contributor

@jar-stripe jar-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! If you haven't already, it would be worth building a small test project to confirm the imports.

@prathmesh-stripe prathmesh-stripe enabled auto-merge (squash) April 8, 2026 03:09
@prathmesh-stripe prathmesh-stripe merged commit 60d556f into master Apr 8, 2026
11 checks passed
@prathmesh-stripe prathmesh-stripe deleted the prathmesh/fix-nested-param-exports branch April 8, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stripe SDK v22 no longer exports SessionCreateParams

2 participants