contentlayerdev / contentlayerdev/contentlayer

TS error for self-referencing type definitions

オープン
#4 コメント 3 件 リアクション 1 件 担当者 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 エラーを再現します。関係する生成または消費された定義を追跡します。定義が any を使わずに implicit-any エラーを生成しなくなれば完了です。

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

評価

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

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

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