contentlayerdev / contentlayerdev/contentlayer

TS error for self-referencing type definitions

Open
#4 3 comments 1 reaction 0 assignees View on GitHub
bug meta: never-stale pkg/source-files
Dominant language
TypeScript
Stars
3.5k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

![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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.