NGU-Web/src/react-css.d.ts
Zaldimmar 1b2af2bfbd Fix the remaining type errors in src/
- 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>
2026-09-25 04:33:21 -05:00

13 lines
386 B
TypeScript

/* CSS custom properties set through a `style` prop. React's
CSSProperties only knows the standard ones, so each variable the
site sets inline is declared here once rather than cast at every
use. */
import "react";
declare module "react" {
interface CSSProperties {
/** The Instagram icon's hover fill; read by .ig-icon in index.css. */
"--ig-fill"?: string;
}
}