adopted-ember-addons / adopted-ember-addons/validated-changeset

Type of PublicErrors.validation seems wrong

未关闭
#187 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
38
派生
27
PR 合并指标
30 天内没有已合并 PR

描述

[Here](https://github.com/validated-changeset/validated-changeset/blob/c1c95b729aae80fd30b30b691202a94c974a3309/src/types/index.ts#L89) it is typed as `ValidationErr | ValidationErr[]`, but `ValidationErr` itself is also typed as potentially being an array [here](https://github.com/validated-changeset/validated-changeset/blob/c1c95b729aae80fd30b30b691202a94c974a3309/src/types/index.ts#L18), so narrowed down it seems the type would be `string | string[] | string[][]`, and the last parts seems wrong, not?

I think it should be typed just as `validation: ValidationErr`!?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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