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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。