sindresorhus/type-fest

`PartialDeep` make `Date` internal structure partial

Open

#719 创建于 2023年10月20日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)TypeScript (12,328 star) (471 fork)batch import
buggood first issuehelp wanted

描述

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?

贡献者指南