sindresorhus/type-fest

ReadonlyDeep: add test for function or method returning an object?

Fermée

#826 ouverte le 7 mars 2024

 (1 commentaire) (0 réaction) (0 personne assignée)TypeScript (471 forks)batch import
help 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

Reading through the ReadonlyDeep type and its tests, I can't tell if ReadonlyDeep<() => Map>() would return a Map or a ReadonlyDeep<Map>. The tests just don't cover that sort of case.

Guide contributeur