contentlayerdev / contentlayerdev/contentlayer

TS error for self-referencing type definitions

未關閉
#4 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
bug meta: never-stale pkg/source-files
主要語言
TypeScript
星號
3.5k
分支
192
PR 合併指標
30 天內沒有已合併 PR

描述

![image](https://user-images.githubusercontent.com/1567498/136536316-ae0beaad-838b-4635-b99d-16b8857ea826.png)

```
'Link' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
```

Workaround: Use `any`

![image](https://user-images.githubusercontent.com/1567498/136536386-a807fc8f-40ab-41af-8236-c03f46dca2e0.png)

cc @seancdavis

貢獻指南

開啟貢獻指南

研究方向

從 issue 截圖中顯示的自我參照型別定義開始,並重現 TypeScript 錯誤。追蹤涉及的產生或使用的定義;當該定義不再產生 implicit-any 錯誤且不使用 any 時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
devtools
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。