From 24ad396a07419c8215f9051bb28ad9f4eac4d9c4 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Mon, 23 Nov 2026 12:19:36 +0900 Subject: [PATCH] chore: drop tsconfig options TypeScript 7 removed TypeScript 7 rejects `baseUrl`, `moduleResolution: "node"` (node10), `noImplicitUseStrict` and `noStrictGenericChecks`, so #1239 fails `tsc` before checking any code. Remove them, and switch module resolution to `bundler`, which matches how Metro resolves this package. TypeScript 6+ also stops auto-including every `@types/*` package, so list the two the sources rely on: `jest` for the test globals and `node` for `global` in UIMenuView.android.tsx. All of this works on the current TypeScript 5.9 too. tsc passes, and `yarn prepare` emits byte-identical .d.ts files, so it can land ahead of the TypeScript 7 bump. Co-Authored-By: Claude Opus 5.5 --- tsconfig.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index a3560154..497aeb06 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "baseUrl": ".", "paths": { "@react-native-menu/menu": ["./src/index"] }, @@ -11,16 +10,15 @@ "jsx": "react-jsx", "lib": ["esnext"], "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, - "noImplicitUseStrict": false, - "noStrictGenericChecks": false, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "skipLibCheck": true, "strict": true, - "target": "esnext" + "target": "esnext", + "types": ["jest", "node"] } }