Problem
tsconfig.settings.json sets "isolatedDeclarations": true (line 19), which requires explicit type annotations on all exported declarations.
This contradicts the convention documented in CLAUDE.md:
static styles = [styles] array form
With --isolatedDeclarations enabled, that form produces TS9017:
error TS9017: Only const arrays can be inferred with --isolatedDeclarations.
The actual working form must be:
static readonly styles: CSSStyleSheet[] = [styles];
The sibling project red-hat-design-system does not use --isolatedDeclarations and uses the simpler inferred form without issue.
Question
Should we remove isolatedDeclarations from tsconfig.settings.json to allow the simpler convention, or update CLAUDE.md to document the explicit type annotation requirement?
Problem
tsconfig.settings.jsonsets"isolatedDeclarations": true(line 19), which requires explicit type annotations on all exported declarations.This contradicts the convention documented in
CLAUDE.md:With
--isolatedDeclarationsenabled, that form produces TS9017:The actual working form must be:
The sibling project
red-hat-design-systemdoes not use--isolatedDeclarationsand uses the simpler inferred form without issue.Question
Should we remove
isolatedDeclarationsfromtsconfig.settings.jsonto allow the simpler convention, or updateCLAUDE.mdto document the explicit type annotation requirement?