Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

chore: evaluate removing isolatedDeclarations from tsconfig

オープン
#3,136 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@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
スター
394
フォーク
107
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

patternfly/patternfly-elements のほかの issue

patternfly/patternfly-elements の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。