Files
81875c8c42 fix(astro): support stricter optional property checking (#5070)
Omit absent className values when calling the shared icon builder so
shipped Astro source passes exactOptionalPropertyTypes without changing
rendered classes.

Enable exactOptionalPropertyTypes and noUncheckedIndexedAccess in the
package tsconfig so the existing CI typecheck catches regressions.

Background: https://github.com/withastro/astro/issues/18471

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2026-10-29 17:38:53 +01:00

29 lines
742 B
JSON

{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"useDefineForClassFields": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"skipLibCheck": true,
"jsx": "preserve",
"lib": ["ESNext", "DOM.Iterable"],
"types": ["@testing-library/jest-dom/vitest"],
"plugins": [
{
"name": "@astrojs/ts-plugin"
}
]
},
"include": ["src/**/*.ts", "src/**/*.astro", "tests/**/*.ts"]
}