developit / developit/vhtml

How do I use this with TypeScript?

オープン
#19 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
814
フォーク
37
PR マージ指標
30日以内にマージされた PR はありません

説明

I can figure out the:

```
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "h",
},
}
```

But I can't figure out how to get the typings going for `h` and things like `children`,

Specifically the error I'm getting on any JSX element is:

> JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.ts(7026)

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

No repository file or test is named. Start by reviewing the TypeScript compilerOptions shown in the issue and the JSX typing requirements behind the reported TS7026 error. Done means documenting or demonstrating how to configure typings for h, children, and JSX elements when using vhtml with TypeScript.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
frontend
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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