You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
throwOnMaxRedirects is documented, but misnamed, and not in type definitions #4376
I do however see throwOnMaxRedirect (no trailing s) that is actually used to trigger exceptions. Just like throwOnMaxRedirects, throwOnMaxRedirect is not defined in the interceptor.d.ts type declarations/definitions for the pre-defined redirect interceptor opts.
Documentation specifies how someone can properly trigger an exception using either throwOnMaxRedirect or throwOnMaxRedirects (not sure which one is correct, but personal preference is throwOnMaxRedirects
RedirectInterceptorOpts are updated to accept an optional throwOnMaxRedirects (or throwOnMaxRedirect if that's the preference) boolean for typescript users
Activity
Ethan-Arrowood commentedon Jul 31, 2025
Good catch! Would you like to send a PR to fix?
williamhaley commentedon Jul 31, 2025
@Ethan-Arrowood I'll give it a shot within the next few hours 👍
williamhaley commentedon Aug 1, 2025
I gave it a go here #4377
fix(interceptor): add throwOnMaxRedirect to types and interceptor opts