stripe-node 23.0.0 removed the Stripe.ErrorType namespace, so type annotations that name types such as Stripe.ErrorType.StripeCardError fail to compile after upgrading
Took effect · stripe-node 23.0.0 — Stripe.ErrorType TypeScript namespace removed
Reviewed against the vendor source on Oct 2, 2026 (AI-assisted review). Key facts are re-checked against the source daily.
What changes
Stripe.ErrorType only ever provided types, and every one of them is also available under Stripe.errors, which works as both a type and a value.
Breaking: Calls fail after this date.
What to do
When moving to stripe-node 23, replace Stripe.ErrorType with Stripe.errors in type annotations (for example Stripe.errors.StripeCardError).
Strings to search for
Stripe.ErrorType
Counts only in files matching *.js, *.mjs, *.cjs, *.ts, *.mts, *.cts, *.tsx, *.jsx; repos that depend on stripe 23.x (npm); or repos that mention "stripe": "^23 or "stripe": "~23 or "stripe": "23 or stripe@^23 or stripe@23 or stripe@npm:^23 or stripe@npm:23 (including dependency manifests).