Fix the remaining type errors in src/ #4

Merged
ngu-git-admin merged 1 commit from types/remaining-errors into main 2026-09-25 10:34:31 +01:00

Follow-up to #3. Clears the seven type errors that were already in src/ and weren't implicit-any. pnpm exec tsc --noEmit and pnpm exec tsc --noEmit --noImplicitAny both report zero errors; pnpm build passes.

  • src/react-css.d.ts declares the --ig-fill custom property on React's CSSProperties, so the inline styles that set it in Footer, Home and EventList-Cards type-check without casts.
  • Footer's Get_In_Touch links are typed as either an internal route (to) or an external address (href, external: true), so the existing external branch type-checks. No current link is external; nothing renders differently.
  • Home passes undefined rather than null for an absent gradient, and EventList-Cards does the same for an absent Instagram URL. Both render the same as before.

🤖 Generated with Claude Code

Follow-up to #3. Clears the seven type errors that were already in `src/` and weren't implicit-any. `pnpm exec tsc --noEmit` and `pnpm exec tsc --noEmit --noImplicitAny` both report zero errors; `pnpm build` passes. - `src/react-css.d.ts` declares the `--ig-fill` custom property on React's `CSSProperties`, so the inline styles that set it in Footer, Home and EventList-Cards type-check without casts. - Footer's `Get_In_Touch` links are typed as either an internal route (`to`) or an external address (`href`, `external: true`), so the existing external branch type-checks. No current link is external; nothing renders differently. - Home passes `undefined` rather than `null` for an absent gradient, and EventList-Cards does the same for an absent Instagram URL. Both render the same as before. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ngu-git-admin added 1 commit 2026-09-25 10:33:39 +01:00
- Declare the --ig-fill custom property on React's CSSProperties once,
  instead of casting the style prop in Footer, Home and EventList-Cards.
- Type Footer's Get_In_Touch links as internal or external, so the
  external branch type-checks.
- Pass undefined rather than null for an absent gradient (Home) and
  Instagram URL (EventList-Cards).

tsc --noEmit is now clean, with and without --noImplicitAny.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ngu-git-admin merged commit aebc1c302b into main 2026-09-25 10:34:31 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ngu-git-admin/NGU-Web#4
No description provided.