Skip to content

fix: resolve typecheck errors blocking CI - #2

Merged
AminMemariani merged 1 commit into
mainfrom
fix/typecheck-ci
Jul 21, 2026
Merged

fix: resolve typecheck errors blocking CI#2
AminMemariani merged 1 commit into
mainfrom
fix/typecheck-ci

Conversation

@AminMemariani

Copy link
Copy Markdown
Collaborator

What

Fixes the pre-existing Validate (typecheck) failures that block CI on main. 16 errors across 7 files, all resolved.

Changes

  • Missing dependencies added to apps/web: adm-zip, lucide-react, and @types/adm-zip (were imported but never declared → TS2307, and cascading implicit-any on adm-zip entry callbacks).
  • React types clash (TS2322 in admin-providers.tsx): pinned @types/react/@types/react-dom to v19 via root pnpm.overrides, removing the duplicated @types/react@18 pulled in transitively.
  • theme-manager.ts (TS2322): DefaultLayout now accepts the customizations prop so it matches ComponentType<{ children; customizations }>.
  • use-autosave.ts (TS2554): useRef given an explicit initial undefined (React 19 types require an argument).
  • lib/auth/config.ts (TS2352): session-user cast routed through unknown while keeping the satisfies SessionUser check.
  • heading.tsx (TS2503): import JSX type from react (the global JSX namespace moved under React 19 types).

Verification

  • pnpm turbo typecheck7/7 packages pass locally.
  • pnpm --filter @nextpress/db exec prisma validate → schema valid.
  • No schema, API, or behavioral changes — types and dependency declarations only.

⛩️ Generated with ehAye Dojo 🚀

- add missing deps: adm-zip, lucide-react, @types/adm-zip (apps/web)
- pin @types/react/react-dom to v19 via pnpm overrides to fix React 18/19 ReactNode clash
- DefaultLayout: accept customizations prop to match LoadedTheme layout type
- use-autosave: provide initial value to useRef (React 19 types)
- auth config: cast session.user through unknown
- heading block: import JSX type from react (React 19 global namespace move)
@AminMemariani
AminMemariani merged commit 548ad2c into main Jul 21, 2026
4 checks passed
@AminMemariani
AminMemariani deleted the fix/typecheck-ci branch July 21, 2026 15:44
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