contentlayerdev / contentlayerdev/contentlayer

TS should not allow adding additional properties to field definitions

未关闭
#224 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
help wanted meta: never-stale needs-research topic: schema topic: typescript
主要语言
TypeScript
星标
3.5k
派生
192
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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