sindresorhus/type-fest

`PartialDeep` make `Date` internal structure partial

开放

#719 创建于 2023年10月20日

 (2 条评论) (0 个反应) (0 位负责人)TypeScript (471 个派生)batch import
buggood first issuehelp wanted

仓库指标

星标
 (12,328 个星标)
PR 合并指标
 (平均合并 3天 5小时) (30 天内合并 11 个 PR)

描述

I've noticed that when you apply PartialDeep to something containing Date it makes the Date internal structure partial, which causes some errors when combining it with zod validations for instance.

Should it skip internal JS classes like Date while making something partially deep?

I've found https://github.com/sindresorhus/type-fest/pull/342, but I still see the issue on version v4.4.0, might be a regression?

贡献者指南