diff --git a/.eslintignore b/.eslintignore index 6e4f9036f..cc085b433 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,5 @@ *.template.js plugins/* themes/* +dist-bundle/* dist/* diff --git a/src/renderer/coremods/notices/noticeMod.tsx b/src/renderer/coremods/notices/noticeMod.tsx index a2f01a6b6..bd007a813 100644 --- a/src/renderer/coremods/notices/noticeMod.tsx +++ b/src/renderer/coremods/notices/noticeMod.tsx @@ -52,9 +52,11 @@ interface NoticeMod { Notice: React.FC>; } -const mod = await waitForModule>; -}>(filters.bySource(".colorPremiumTier1,")); +const mod = await waitForModule< + NoticeMod & { + default: React.FC>; + } +>(filters.bySource(".colorPremiumTier1,")); export default { NoticeColors: mod.NoticeColors, diff --git a/src/renderer/coremods/settings/index.tsx b/src/renderer/coremods/settings/index.tsx index 68742d4ee..bfb95edd8 100644 --- a/src/renderer/coremods/settings/index.tsx +++ b/src/renderer/coremods/settings/index.tsx @@ -17,7 +17,9 @@ async function injectVersionInfo(): Promise { const mod = await waitForModule(filters.bySource(".versionHash"), { raw: true }); injector.after(mod.exports, "default", (_, res) => { - res.props.children.push(" ", null, + res.props.children.push( + " ", + null, { default: { prototype: { getPredicateSections: (_: unknown) => SectionType[]; - } - } + }; + }; }>(filters.bySource("getPredicateSections")); injector.after(mod.default.prototype, "getPredicateSections", (_, res) => { return insertSections(res); diff --git a/src/renderer/modules/components/FormText.tsx b/src/renderer/modules/components/FormText.tsx index bb7cf66b3..72569a152 100644 --- a/src/renderer/modules/components/FormText.tsx +++ b/src/renderer/modules/components/FormText.tsx @@ -22,7 +22,7 @@ interface FormTextProps { export type FormTextCompType = React.FC>; -type FormTextType = Record; +export type FormTextType = Record; const FormTextComp = components.FormText; const types = components.FormTextTypes; diff --git a/tsconfig.json b/tsconfig.json index 1130d2a66..e6f84ff55 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -112,5 +112,5 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, - "exclude": ["dist", "docs", "bin.mjs"] + "exclude": ["dist", "dist-bundle", "docs", "bin.mjs"] }