contentlayerdev / contentlayerdev/contentlayer

TS should not allow adding additional properties to field definitions

Open
#224 0 comments 1 reaction 0 assignees View on GitHub
help wanted meta: never-stale needs-research topic: schema topic: typescript
Dominant language
TypeScript
Stars
3.5k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

When I'm configuring a field definition, I can add any random property without warning or error. Ideally a situation like this would throw a TS error:

![image](https://user-images.githubusercontent.com/5245089/168885495-e4e0ffd1-c5e9-4658-b1ea-6580e9540eee.png)

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.