chore: evaluate removing isolatedDeclarations from tsconfig
@bennypowers 已經在處理了。
開始於 2026年5月8日。
評估
這個 Issue 還沒有評估資料。
描述
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?
- 主要語言
- TypeScript
- 星號
- 395
- 分支
- 107
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
patternfly/patternfly-elements 的其他 Issue
-
[bug] ssr-shims.js uses deprecated globalThis.litSsrCallConnectedCallback可能已有人在做 @zeroedin 於 65 天前認領。 未關閉bug
patternfly/patternfly-elements#3158 · 已指派 1 人 ·
-
chore: update docs scaffolding for v6 elements可能重新可做 @zeroedin 於 155 天前認領,目前沒有進行中的 PR。 未關閉docs
patternfly/patternfly-elements#3131 · 已指派 1 人 ·
-
難度 4/5 3-5 天 新手友好度 55/100
patternfly/patternfly-elements#3122 ·
-
難度 5/5 一週以上 新手友好度 38/100
patternfly/patternfly-elements#3118 ·
-
難度 5/5 一週以上 新手友好度 25/100
patternfly/patternfly-elements#3110 ·
查看 patternfly/patternfly-elements 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
JoviDeCroock/pracht#432 ·
維護者通常 1 天內回覆
-
approved check:passed streams:add
難度 1/5 1 小時以內 新手友好度 75/100
維護者通常 1 天內回覆
-
Hardware attribute name "app Connection Support" has inconsistent casing可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
walletbeat/walletbeat#1628 ·
維護者通常 1 天內回覆
-
bug go
難度 2/5 1-3 小時 新手友好度 82/100
genkit-ai/genkit#6761 · 1 則留言 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
NousResearch/hermes-agent#136483 ·
維護者通常 1 天內回覆