tsconfig: enable isolatedModules
This commit is contained in:
parent
040864466a
commit
07776e6296
|
@ -94,4 +94,4 @@ const useZapSplit = (status: StatusEntity | undefined, account: AccountEntity) =
|
||||||
};
|
};
|
||||||
|
|
||||||
export default useZapSplit;
|
export default useZapSplit;
|
||||||
export { SplitValue };
|
export type { SplitValue };
|
|
@ -49,4 +49,4 @@ const useButtonStyles = ({
|
||||||
return buttonStyle;
|
return buttonStyle;
|
||||||
};
|
};
|
||||||
|
|
||||||
export { useButtonStyles, ButtonSizes, ButtonThemes };
|
export { useButtonStyles, type ButtonSizes, type ButtonThemes };
|
||||||
|
|
|
@ -139,5 +139,5 @@ const Input = React.forwardRef<HTMLInputElement, IInput>(
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Input as default,
|
Input as default,
|
||||||
InputThemes,
|
type InputThemes,
|
||||||
};
|
};
|
||||||
|
|
|
@ -133,5 +133,5 @@ const Text = React.forwardRef<any, IText>(
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Text as default,
|
Text as default,
|
||||||
IText,
|
type IText,
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,4 +30,4 @@ const StatProvider: React.FC<IStatProvider> = ({ children }) => {
|
||||||
|
|
||||||
const useStatContext = (): IStatContext => useContext(StatContext);
|
const useStatContext = (): IStatContext => useContext(StatContext);
|
||||||
|
|
||||||
export { StatProvider, useStatContext, IStatContext };
|
export { StatProvider, useStatContext, type IStatContext };
|
|
@ -63,5 +63,5 @@ const Palette: React.FC<IPalette> = ({ palette, onChange, resetKey }) => {
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Palette as default,
|
Palette as default,
|
||||||
ColorGroup,
|
type ColorGroup,
|
||||||
};
|
};
|
|
@ -29,4 +29,4 @@ const adminAccountSchema = z.object({
|
||||||
|
|
||||||
type AdminAccount = z.infer<typeof adminAccountSchema>;
|
type AdminAccount = z.infer<typeof adminAccountSchema>;
|
||||||
|
|
||||||
export { adminAccountSchema, AdminAccount };
|
export { adminAccountSchema, type AdminAccount };
|
|
@ -20,4 +20,4 @@ const applicationSchema = z.object({
|
||||||
|
|
||||||
type Application = z.infer<typeof applicationSchema>;
|
type Application = z.infer<typeof applicationSchema>;
|
||||||
|
|
||||||
export { applicationSchema, Application };
|
export { applicationSchema, type Application };
|
|
@ -255,4 +255,4 @@ function upgradeInstance(v1: InstanceV1): InstanceV2 {
|
||||||
type InstanceV1 = z.infer<typeof instanceV1Schema>;
|
type InstanceV1 = z.infer<typeof instanceV1Schema>;
|
||||||
type InstanceV2 = z.infer<typeof instanceV2Schema>;
|
type InstanceV2 = z.infer<typeof instanceV2Schema>;
|
||||||
|
|
||||||
export { instanceV1Schema, InstanceV1, instanceV2Schema, InstanceV2, upgradeInstance };
|
export { instanceV1Schema, type InstanceV1, instanceV2Schema, type InstanceV2, upgradeInstance };
|
||||||
|
|
|
@ -25,4 +25,4 @@ const soapboxAuthSchema = z.object({
|
||||||
type AuthUser = z.infer<typeof authUserSchema>;
|
type AuthUser = z.infer<typeof authUserSchema>;
|
||||||
type SoapboxAuth = z.infer<typeof soapboxAuthSchema>;
|
type SoapboxAuth = z.infer<typeof soapboxAuthSchema>;
|
||||||
|
|
||||||
export { soapboxAuthSchema, SoapboxAuth, authUserSchema, AuthUser };
|
export { soapboxAuthSchema, type SoapboxAuth, authUserSchema, type AuthUser };
|
|
@ -11,4 +11,4 @@ const tokenSchema = z.object({
|
||||||
|
|
||||||
type Token = z.infer<typeof tokenSchema>;
|
type Token = z.infer<typeof tokenSchema>;
|
||||||
|
|
||||||
export { tokenSchema, Token };
|
export { tokenSchema, type Token };
|
|
@ -23,4 +23,4 @@ const webPushSubscriptionSchema = z.object({
|
||||||
|
|
||||||
type WebPushSubscription = z.infer<typeof webPushSubscriptionSchema>;
|
type WebPushSubscription = z.infer<typeof webPushSubscriptionSchema>;
|
||||||
|
|
||||||
export { webPushSubscriptionSchema, WebPushSubscription };
|
export { webPushSubscriptionSchema, type WebPushSubscription };
|
|
@ -53,7 +53,7 @@ interface Status extends ReturnType<typeof StatusRecord> {
|
||||||
type APIEntity = Record<string, any>;
|
type APIEntity = Record<string, any>;
|
||||||
type EmbeddedEntity<T extends object> = null | string | ReturnType<ImmutableRecord.Factory<T>>;
|
type EmbeddedEntity<T extends object> = null | string | ReturnType<ImmutableRecord.Factory<T>>;
|
||||||
|
|
||||||
export {
|
export type {
|
||||||
Account,
|
Account,
|
||||||
AdminAccount,
|
AdminAccount,
|
||||||
AdminReport,
|
AdminReport,
|
||||||
|
|
|
@ -12,7 +12,7 @@ type FooterItem = ReturnType<typeof FooterItemRecord>;
|
||||||
type CryptoAddress = ReturnType<typeof CryptoAddressRecord>;
|
type CryptoAddress = ReturnType<typeof CryptoAddressRecord>;
|
||||||
type SoapboxConfig = ReturnType<typeof SoapboxConfigRecord>;
|
type SoapboxConfig = ReturnType<typeof SoapboxConfigRecord>;
|
||||||
|
|
||||||
export {
|
export type {
|
||||||
Me,
|
Me,
|
||||||
PromoPanelItem,
|
PromoPanelItem,
|
||||||
FooterItem,
|
FooterItem,
|
||||||
|
|
|
@ -35,6 +35,6 @@ const validType = (type: string): type is NotificationType => NOTIFICATION_TYPES
|
||||||
export {
|
export {
|
||||||
NOTIFICATION_TYPES,
|
NOTIFICATION_TYPES,
|
||||||
EXCLUDE_TYPES,
|
EXCLUDE_TYPES,
|
||||||
NotificationType,
|
type NotificationType,
|
||||||
validType,
|
validType,
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,6 +14,6 @@ const isCountryCode = (value: any): value is CountryCode => COUNTRY_CODES.includ
|
||||||
|
|
||||||
export {
|
export {
|
||||||
COUNTRY_CODES,
|
COUNTRY_CODES,
|
||||||
CountryCode,
|
type CountryCode,
|
||||||
isCountryCode,
|
isCountryCode,
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
|
"isolatedModules": true,
|
||||||
"moduleResolution": "Bundler",
|
"moduleResolution": "Bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|
Loading…
Reference in New Issue