sindresorhus/type-fest

`PartialDeep` make `Date` internal structure partial

Ouverte

#719 ouverte le 20 oct. 2023

 (2 commentaires) (0 réaction) (0 personne assignée)TypeScript (471 forks)batch import
buggood first issuehelp wanted

Métriques du dépôt

Stars
 (12 328 étoiles)
Métriques de merge PR
 (Merge moyen 3j 5h) (11 PRs mergées en 30 j)

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?

Guide contributeur