Skip to content

chore: drop tsconfig options TypeScript 7 removed - #1262

Merged
Naturalclar merged 1 commit into
masterfrom
chore/tsconfig-ts7-ready
Nov 23, 2026
Merged

Naturalclar merged 1 commit into
masterfrom
chore/tsconfig-ts7-ready

Conversation

@Naturalclar

Copy link
Copy Markdown
Member

Problem

#1239 (TypeScript 5.9 → 7.0) fails tsc before it checks any code:

tsconfig.json(3,3): error TS5102: Option 'baseUrl' has been removed.
tsconfig.json(14,23): error TS5108: Option 'moduleResolution=node10' has been removed.
tsconfig.json(17,3): error TS5023: Unknown compiler option 'noImplicitUseStrict'.
tsconfig.json(18,3): error TS5023: Unknown compiler option 'noStrictGenericChecks'.

Once those are fixed, two more errors show up. TypeScript 6+ stops auto-including every @types/* package, so it (jest) and global (src/UIMenuView.android.tsx) are no longer found.

Change (tsconfig.json only)

  • Remove baseUrl. paths already resolves relative to the tsconfig without it.
  • Change moduleResolution from node to bundler, which matches how Metro resolves the package.
  • Remove noImplicitUseStrict and noStrictGenericChecks. Both were set to their default false, so this changes nothing.
  • Add "types": ["jest", "node"]: the two @types packages the sources rely on, which TypeScript 5.9 used to include implicitly.

Verification (local)

yarn typescript yarn prepare (bob)
TypeScript 5.9.3 (current) ✅ ✅. The lib/typescript .d.ts files are byte-identical to the output with the old tsconfig
TypeScript 7.0.2 (#1239's branch + this change) ✅ ✅

So this can land first. After it merges, @dependabot rebase on #1239 should turn its tsc check green.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@Naturalclar
Naturalclar merged commit 9d71b4e into master Nov 23, 2026
6 checks passed
@Naturalclar
Naturalclar deleted the chore/tsconfig-ts7-ready branch November 23, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant