This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
gitgram-ai/gitgram/web/css-modules.d.ts
caelum0x 4f88266ffa chore(web): declare css modules so tsc typecheck gate passes
Raw `tsc --noEmit` (the configured web typecheck gate) errored TS2882 on
side-effect stylesheet imports (import './globals.css', cropperjs css) because
next-env.d.ts does not declare *.css. Next's build handles these; add an ambient
declaration so the typecheck gate matches build reality. Typecheck now exits 0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-06 12:13:55 +03:00

10 lines
445 B
TypeScript

// Ambient declarations for side-effect stylesheet imports.
//
// Next.js compiles CSS imports at build time, but a raw `tsc --noEmit` (the
// configured typecheck gate) has no knowledge of `.css` files and errors on
// `import './globals.css'` style side-effect imports (TS2882). Declaring the
// modules here keeps the typecheck gate green without affecting the build.
declare module '*.css';
declare module '*.scss';
declare module '*.sass';