From a105120bc63f48d3b4bd61034f650ee3fa9b2507 Mon Sep 17 00:00:00 2001 From: Yogesh Chaudhary Date: Thu, 26 Mar 2026 10:07:40 +0530 Subject: [PATCH] fix: replace inline type modifiers with export type block in index.tsx rollup-plugin-typescript2 with rollup v3 cannot parse the inline `type` modifier in named export lists (e.g. `export { type Foo }`), a TypeScript 4.5 syntax. Replace all inline type modifiers with a separate `export type { }` statement which is supported since TypeScript 3.8. --- src/index.tsx | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 2c635503..22664e5e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -42,30 +42,13 @@ export { MissingRefreshTokenError, GenericError, UseDpopNonceError, - type FetcherConfig, RedirectConnectAccountOptions, ConnectAccountRedirectResult, ResponseType, ConnectError, - type InteractiveErrorHandler, CustomTokenExchangeOptions, TokenEndpointResponse, ClientConfiguration, - // MFA Types - type MfaApiClient, - type Authenticator, - type MfaFactorType, - type EnrollParams, - type EnrollOtpParams, - type EnrollSmsParams, - type EnrollVoiceParams, - type EnrollEmailParams, - type EnrollPushParams, - type EnrollmentResponse, - type ChallengeAuthenticatorParams, - type ChallengeResponse, - type VerifyParams, - type EnrollmentFactor, // MFA Errors MfaError, MfaListAuthenticatorsError, @@ -74,4 +57,23 @@ export { MfaVerifyError, MfaEnrollmentFactorsError, } from '@auth0/auth0-spa-js'; +export type { + FetcherConfig, + InteractiveErrorHandler, + // MFA Types + MfaApiClient, + Authenticator, + MfaFactorType, + EnrollParams, + EnrollOtpParams, + EnrollSmsParams, + EnrollVoiceParams, + EnrollEmailParams, + EnrollPushParams, + EnrollmentResponse, + ChallengeAuthenticatorParams, + ChallengeResponse, + VerifyParams, + EnrollmentFactor, +} from '@auth0/auth0-spa-js'; export { OAuthError } from './errors';