AI media harness for planning, generating, and editing locally
TypeScript
Declare readdirSync so the guard can enumerate the stylesheets
Bittifab9cb4dac07
diff --git a/src/lib/node-builtins.d.ts b/src/lib/node-builtins.d.tsindex 331f580..3efb538 100644--- a/src/lib/node-builtins.d.ts+++ b/src/lib/node-builtins.d.ts@@ -7,7 +7,13 @@about — Vitest stubs `*.css?raw` to an empty string (test.css defaults tofalse), so an import cannot do it, and jsdom implements no cascade, sogetComputedStyle cannot either. Declaring the single function that test- needs keeps the reach into Node exactly that wide. */+ needs keeps the reach into Node exactly that wide.++ `readdirSync` is the second one, and it is there for a reason worth keeping:+ the colour-literal guard enumerates src/styles rather than holding a list of+ sheet names, so a stylesheet added tomorrow is checked without anyone+ remembering to add it. A hand-kept list is how the previous guards rotted. */declare module "node:fs" {export function readFileSync(path: string | URL, encoding: "utf8"): string;+ export function readdirSync(path: string): string[];}