How do I use this with TypeScript?
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 文件
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- typescript
- 領域
- frontend
研究方向
未指定儲存庫檔案或測試。首先檢查 issue 中顯示的 TypeScript compilerOptions,以及所回報 TS7026 錯誤背後的 JSX 型別需求。完成意味著記錄或示範在使用 vhtml 和 TypeScript 時如何為 h、children 和 JSX 元素設定型別宣告。
由索引模型根據 Issue 內容生成。
描述
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)
- 主要語言
- JavaScript
- 星號
- 814
- 分支
- 37
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
developit/vhtml 的其他 Issue
-
Maintenance 未關閉
難度 5/5 一週以上 新手友好度 10/100
-
難度 3/5 1-2 天 新手友好度 25/100
-
難度 2/5 1-3 小時 新手友好度 20/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 3/5 1-2 天 新手友好度 38/100
相似的 Issue
-
Bug
難度 2/5 1-3 小時 新手友好度 70/100
Automattic/safe-publish#594 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
dream-num/dsh-univer-office#104 ·
-
comp/dashboard invalid P3
難度 2/5 1-3 小時 新手友好度 70/100
NousResearch/hermes-agent#121143 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
avniproject/avni-webapp#1811 ·
-
area/auroraboot area/webui bug
難度 2/5 1-3 小時 新手友好度 75/100