sindresorhus/type-fest

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

Open

#826 ouverte le 7 mars 2024

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)TypeScript (12 328 stars) (471 forks)batch import
help wanted

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