sindresorhus/type-fest

`PartialDeep` make `Date` internal structure partial

Open

#719 opened on Oct 20, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (471 forks)batch import
buggood first issuehelp wanted

Repository metrics

Stars
 (12,328 stars)
PR merge metrics
 (Avg merge 3d 5h) (11 merged PRs in 30d)

Description

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?

Contributor guide