Seeing type issue with latest upgrade for estree types
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 28/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- react, typescript
- 領域
- frontend
研究方向
在 antd 實作中重現從 @types/estree ^1.0.1 到 ^1.0.4 的已回報升級,並檢查 node_modules/antd/node_modules/rc-tree/lib/interface.d.ts 中的 KeyEntities 型別。比較已安裝的型別定義,並確認 TypeScript 檢查在沒有 BasicDataNode constraint error 的情況下完成時,問題已獲得解決。
由索引模型根據 Issue 內容生成。
描述
I'm getting the error below when I'm upgrading types in my antd implementation:
- "@types/estree": "^1.0.1",
+ "@types/estree": "^1.0.4",
There seems to be a typing issue with the latest library
node_modules/antd/node_modules/rc-tree/lib/interface.d.ts:59:70 - error TS2344: Type 'DateType' does not satisfy the constraint 'BasicDataNode'.
59 export type KeyEntities<DateType = any> = Record<SafeKey, DataEntity<DateType>>;
~~~~~~~~
node_modules/antd/node_modules/rc-tree/lib/interface.d.ts:59:25
59 export type KeyEntities<DateType = any> = Record<SafeKey, DataEntity<DateType>>;
~~~~~~~~~~~~~~
This type parameter might need an `extends BasicDataNode` constraint.
BasicDataNode is a type from estree
- 主要語言
- TypeScript
- 星號
- 1.3k
- 分支
- 490
- 平均合併
- 42 分鐘
- 30 天內合併 PR
- 2
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react-component/tree 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 55/100
react-component/tree#1068 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 20/100
react-component/tree#983 ·
-
難度 3/5 1-2 天 新手友好度 35/100
react-component/tree#937 ·
-
難度 5/5 一週以上 新手友好度 25/100
react-component/tree#935 ·
-
難度 3/5 1-2 天 新手友好度 35/100
react-component/tree#929 ·
查看 react-component/tree 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
melgarafael/DeskcommCRM#1812 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
prisma/prisma-cli#309 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
gregwebs/pi-quota-dispatcher#26 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
openwatersio/slackwater.xyz#124 ·
維護者通常 1 天內回覆
-
agent-reported area/browser area/docs documentation good first issue hacktoberfest help wanted P2
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 2 天內回覆