From bfe99afb77bec99f9dd3f9f08b89f47e4be266c3 Mon Sep 17 00:00:00 2001 From: Hunter Garrett Date: Sat, 31 Oct 2026 07:11:27 -0400 Subject: [PATCH] fix(docs): load Next's image types in a committed declaration file The FlutedGlass scene imports anthurium.webp. The types for that import come from next/image-types/global, which only next-env.d.ts loads. next-env.d.ts is gitignored and appears only after `next dev` or `next build`, so `tsc --noEmit` failed on a fresh checkout, and CI has been red on main since #268. --- apps/docs/image-types.d.ts | 3 +++ apps/docs/tsconfig.json | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 apps/docs/image-types.d.ts diff --git a/apps/docs/image-types.d.ts b/apps/docs/image-types.d.ts new file mode 100644 index 00000000..243c9736 --- /dev/null +++ b/apps/docs/image-types.d.ts @@ -0,0 +1,3 @@ +// next-env.d.ts loads these too, but it is gitignored and only exists after +// `next dev` or `next build`, so a fresh `tsc --noEmit` would miss them. +/// diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index 710cc7a1..8588bccd 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -23,5 +23,12 @@ } ] }, - "include": ["src", "css.d.ts", "next-env.d.ts", "next.config.ts", ".next/types/**/*.ts"] + "include": [ + "src", + "css.d.ts", + "image-types.d.ts", + "next-env.d.ts", + "next.config.ts", + ".next/types/**/*.ts" + ] }