diff --git a/src/api/hooks/zap-split/useZapSplit.ts b/src/api/hooks/zap-split/useZapSplit.ts index 2790a0129..94451e946 100644 --- a/src/api/hooks/zap-split/useZapSplit.ts +++ b/src/api/hooks/zap-split/useZapSplit.ts @@ -94,4 +94,4 @@ const useZapSplit = (status: StatusEntity | undefined, account: AccountEntity) = }; export default useZapSplit; -export { SplitValue }; \ No newline at end of file +export type { SplitValue }; \ No newline at end of file diff --git a/src/components/ui/button/useButtonStyles.ts b/src/components/ui/button/useButtonStyles.ts index ed9c5cbe7..79e1375cc 100644 --- a/src/components/ui/button/useButtonStyles.ts +++ b/src/components/ui/button/useButtonStyles.ts @@ -49,4 +49,4 @@ const useButtonStyles = ({ return buttonStyle; }; -export { useButtonStyles, ButtonSizes, ButtonThemes }; +export { useButtonStyles, type ButtonSizes, type ButtonThemes }; diff --git a/src/components/ui/input/input.tsx b/src/components/ui/input/input.tsx index 6bc634636..42ca99388 100644 --- a/src/components/ui/input/input.tsx +++ b/src/components/ui/input/input.tsx @@ -139,5 +139,5 @@ const Input = React.forwardRef( export { Input as default, - InputThemes, + type InputThemes, }; diff --git a/src/components/ui/text/text.tsx b/src/components/ui/text/text.tsx index 2c7a17e03..f5957f879 100644 --- a/src/components/ui/text/text.tsx +++ b/src/components/ui/text/text.tsx @@ -133,5 +133,5 @@ const Text = React.forwardRef( export { Text as default, - IText, + type IText, }; diff --git a/src/contexts/stat-context.tsx b/src/contexts/stat-context.tsx index 279f45c37..ad86d8a6f 100644 --- a/src/contexts/stat-context.tsx +++ b/src/contexts/stat-context.tsx @@ -30,4 +30,4 @@ const StatProvider: React.FC = ({ children }) => { const useStatContext = (): IStatContext => useContext(StatContext); -export { StatProvider, useStatContext, IStatContext }; \ No newline at end of file +export { StatProvider, useStatContext, type IStatContext }; \ No newline at end of file diff --git a/src/features/theme-editor/components/palette.tsx b/src/features/theme-editor/components/palette.tsx index c48efb618..e8c358629 100644 --- a/src/features/theme-editor/components/palette.tsx +++ b/src/features/theme-editor/components/palette.tsx @@ -63,5 +63,5 @@ const Palette: React.FC = ({ palette, onChange, resetKey }) => { export { Palette as default, - ColorGroup, + type ColorGroup, }; \ No newline at end of file diff --git a/src/schemas/admin-account.ts b/src/schemas/admin-account.ts index d84c19418..da225602f 100644 --- a/src/schemas/admin-account.ts +++ b/src/schemas/admin-account.ts @@ -29,4 +29,4 @@ const adminAccountSchema = z.object({ type AdminAccount = z.infer; -export { adminAccountSchema, AdminAccount }; \ No newline at end of file +export { adminAccountSchema, type AdminAccount }; \ No newline at end of file diff --git a/src/schemas/application.ts b/src/schemas/application.ts index 7366789bf..f1f7fad5a 100644 --- a/src/schemas/application.ts +++ b/src/schemas/application.ts @@ -20,4 +20,4 @@ const applicationSchema = z.object({ type Application = z.infer; -export { applicationSchema, Application }; \ No newline at end of file +export { applicationSchema, type Application }; \ No newline at end of file diff --git a/src/schemas/instance.ts b/src/schemas/instance.ts index 90eaa906a..5c7c8ac0f 100644 --- a/src/schemas/instance.ts +++ b/src/schemas/instance.ts @@ -255,4 +255,4 @@ function upgradeInstance(v1: InstanceV1): InstanceV2 { type InstanceV1 = z.infer; type InstanceV2 = z.infer; -export { instanceV1Schema, InstanceV1, instanceV2Schema, InstanceV2, upgradeInstance }; +export { instanceV1Schema, type InstanceV1, instanceV2Schema, type InstanceV2, upgradeInstance }; diff --git a/src/schemas/soapbox/soapbox-auth.ts b/src/schemas/soapbox/soapbox-auth.ts index e51a8f794..54d6d6c5d 100644 --- a/src/schemas/soapbox/soapbox-auth.ts +++ b/src/schemas/soapbox/soapbox-auth.ts @@ -25,4 +25,4 @@ const soapboxAuthSchema = z.object({ type AuthUser = z.infer; type SoapboxAuth = z.infer; -export { soapboxAuthSchema, SoapboxAuth, authUserSchema, AuthUser }; \ No newline at end of file +export { soapboxAuthSchema, type SoapboxAuth, authUserSchema, type AuthUser }; \ No newline at end of file diff --git a/src/schemas/token.ts b/src/schemas/token.ts index 2feaf30bd..0708b765a 100644 --- a/src/schemas/token.ts +++ b/src/schemas/token.ts @@ -11,4 +11,4 @@ const tokenSchema = z.object({ type Token = z.infer; -export { tokenSchema, Token }; \ No newline at end of file +export { tokenSchema, type Token }; \ No newline at end of file diff --git a/src/schemas/web-push.ts b/src/schemas/web-push.ts index f0553dc32..60eee13a6 100644 --- a/src/schemas/web-push.ts +++ b/src/schemas/web-push.ts @@ -23,4 +23,4 @@ const webPushSubscriptionSchema = z.object({ type WebPushSubscription = z.infer; -export { webPushSubscriptionSchema, WebPushSubscription }; \ No newline at end of file +export { webPushSubscriptionSchema, type WebPushSubscription }; \ No newline at end of file diff --git a/src/types/entities.ts b/src/types/entities.ts index 3936df856..1c88b7f7c 100644 --- a/src/types/entities.ts +++ b/src/types/entities.ts @@ -53,7 +53,7 @@ interface Status extends ReturnType { type APIEntity = Record; type EmbeddedEntity = null | string | ReturnType>; -export { +export type { Account, AdminAccount, AdminReport, diff --git a/src/types/soapbox.ts b/src/types/soapbox.ts index 459339750..382b7dc73 100644 --- a/src/types/soapbox.ts +++ b/src/types/soapbox.ts @@ -12,7 +12,7 @@ type FooterItem = ReturnType; type CryptoAddress = ReturnType; type SoapboxConfig = ReturnType; -export { +export type { Me, PromoPanelItem, FooterItem, diff --git a/src/utils/notification.ts b/src/utils/notification.ts index bfea82711..5b2c943cb 100644 --- a/src/utils/notification.ts +++ b/src/utils/notification.ts @@ -35,6 +35,6 @@ const validType = (type: string): type is NotificationType => NOTIFICATION_TYPES export { NOTIFICATION_TYPES, EXCLUDE_TYPES, - NotificationType, + type NotificationType, validType, }; diff --git a/src/utils/phone.ts b/src/utils/phone.ts index 8fde39f12..c1e4179ea 100644 --- a/src/utils/phone.ts +++ b/src/utils/phone.ts @@ -14,6 +14,6 @@ const isCountryCode = (value: any): value is CountryCode => COUNTRY_CODES.includ export { COUNTRY_CODES, - CountryCode, + type CountryCode, isCountryCode, }; diff --git a/tsconfig.json b/tsconfig.json index 92a209b21..6c92951ba 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ "target": "ESNext", "jsx": "react", "allowJs": true, + "isolatedModules": true, "moduleResolution": "Bundler", "resolveJsonModule": true, "esModuleInterop": true,