Skip to content

Commit a105120

Browse files
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.
1 parent 5ee2fef commit a105120

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

src/index.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,30 +42,13 @@ export {
4242
MissingRefreshTokenError,
4343
GenericError,
4444
UseDpopNonceError,
45-
type FetcherConfig,
4645
RedirectConnectAccountOptions,
4746
ConnectAccountRedirectResult,
4847
ResponseType,
4948
ConnectError,
50-
type InteractiveErrorHandler,
5149
CustomTokenExchangeOptions,
5250
TokenEndpointResponse,
5351
ClientConfiguration,
54-
// MFA Types
55-
type MfaApiClient,
56-
type Authenticator,
57-
type MfaFactorType,
58-
type EnrollParams,
59-
type EnrollOtpParams,
60-
type EnrollSmsParams,
61-
type EnrollVoiceParams,
62-
type EnrollEmailParams,
63-
type EnrollPushParams,
64-
type EnrollmentResponse,
65-
type ChallengeAuthenticatorParams,
66-
type ChallengeResponse,
67-
type VerifyParams,
68-
type EnrollmentFactor,
6952
// MFA Errors
7053
MfaError,
7154
MfaListAuthenticatorsError,
@@ -74,4 +57,23 @@ export {
7457
MfaVerifyError,
7558
MfaEnrollmentFactorsError,
7659
} from '@auth0/auth0-spa-js';
60+
export type {
61+
FetcherConfig,
62+
InteractiveErrorHandler,
63+
// MFA Types
64+
MfaApiClient,
65+
Authenticator,
66+
MfaFactorType,
67+
EnrollParams,
68+
EnrollOtpParams,
69+
EnrollSmsParams,
70+
EnrollVoiceParams,
71+
EnrollEmailParams,
72+
EnrollPushParams,
73+
EnrollmentResponse,
74+
ChallengeAuthenticatorParams,
75+
ChallengeResponse,
76+
VerifyParams,
77+
EnrollmentFactor,
78+
} from '@auth0/auth0-spa-js';
7779
export { OAuthError } from './errors';

0 commit comments

Comments
 (0)