Files
herdrMario/mod/ovis-composer/jsconfig.json
T
2026-11-19 11:06:12 +01:00

33 lines
1.4 KiB
JSON

{
"// why": [
"Written once by gpui-shell, then yours: an existing jsconfig.json or",
"tsconfig.json is never replaced, and this file is not rewritten.",
"",
"`moduleResolution` is how a bare specifier is answered. Left to be",
"inferred it can still land on the resolution that never looks in",
"node_modules, and a Git dependency the runtime resolves fine is",
"underlined as a module the editor cannot find.",
"",
"`lib` decides which globals exist. The default hands a script the",
"browser's — a `console`, a `localStorage`, a `Window` this runtime does",
"not have — and their declarations collide with the ones gpui-kit.d.ts makes,",
"so the file describing the API is itself reported as the error.",
"",
"`strictNullChecks` is off, and this one is the runtime's shape rather than",
"a preference. A view assigns its state in `init`, which TypeScript cannot",
"see as definite assignment the way it sees a constructor, so every field",
"would read as possibly-undefined and every use would want a `?.` that",
"means nothing at run time. Turning it on would buy noise, not safety."
],
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "bundler",
"lib": ["ES2022"],
"checkJs": true,
"strict": true,
"strictNullChecks": false,
"noEmit": true
}
}