Commit 4c5c311
fix: CJS companion namespace access for resource types at all depths (#2765)
* fix: regenerate types for CJS companion namespace access at all depths
Regenerated from stripe/sdk-codegen#3768 which fixes:
- Resource sub-types (e.g. Stripe.Price.Recurring) now accessible in CJS
- Nested resource types (e.g. Stripe.Billing.Alert.Status) now accessible
in both CJS and ESM
- Deep params namespaces (e.g. AccountCreateParams.BusinessProfile.AnnualRevenue)
now accessible in CJS
Fixes #2683
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
* test: add regression tests for nested namespace type access
Adds type assertions for patterns that were previously broken in CJS
(and some in ESM too):
- Resource sub-types: Stripe.Price.Recurring, Stripe.Customer.InvoiceSettings
- Deep resource sub-types: Stripe.Subscription.BillingMode.Type
- Nested resource sub-types: Stripe.Billing.Alert.Status,
Stripe.Terminal.Configuration.Tipping, Stripe.Apps.Secret.Scope
- Deep params: Stripe.AccountCreateParams.BusinessProfile.AnnualRevenue
Added to both testProjects/types/ (ESM) and testProjects/types-cjs-node16/
(CJS) so both declaration files are covered.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
* test: add namespace regression tests to types-cjs project
Same coverage as types/ and types-cjs-node16/ — covers
module: commonjs / moduleResolution: node resolution mode.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b8e8c23 commit 4c5c311
72 files changed
Lines changed: 29564 additions & 17903 deletions
File tree
- src
- resources
- Apps
- BillingPortal
- Billing
- Checkout
- Climate
- FinancialConnections
- Forwarding
- Identity
- Issuing
- Radar
- Reporting
- Reserve
- Sigma
- Tax
- Terminal
- TestHelpers
- Treasury
- V2
- Billing
- Commerce
- Core
- testProjects
- types-cjs-node16
- types-cjs
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
112 | 111 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
118 | 117 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 118 | + | |
| 119 | + | |
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 132 | + | |
| 133 | + | |
135 | 134 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
141 | 140 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
146 | 145 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
151 | 156 | | |
| 157 | + | |
| 158 | + | |
152 | 159 | | |
153 | | - | |
| 160 | + | |
154 | 161 | | |
155 | | - | |
156 | | - | |
| 162 | + | |
157 | 163 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 164 | + | |
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
53 | 74 | | |
54 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
55 | 79 | | |
56 | 80 | | |
57 | | - | |
58 | | - | |
| 81 | + | |
| 82 | + | |
59 | 83 | | |
60 | | - | |
| 84 | + | |
61 | 85 | | |
62 | | - | |
| 86 | + | |
63 | 87 | | |
64 | 88 | | |
65 | | - | |
| 89 | + | |
66 | 90 | | |
67 | | - | |
| 91 | + | |
68 | 92 | | |
| 93 | + | |
69 | 94 | | |
70 | | - | |
| 95 | + | |
| 96 | + | |
71 | 97 | | |
72 | | - | |
| 98 | + | |
73 | 99 | | |
74 | | - | |
| 100 | + | |
75 | 101 | | |
76 | 102 | | |
77 | | - | |
| 103 | + | |
78 | 104 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 105 | + | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
0 commit comments