sindresorhus/type-fest

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

Chiusa

#826 aperta il 7 mar 2024

 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (471 fork)batch import
help wanted

Metriche repository

Star
 (12.328 stelle)
Metriche merge PR
 (Merge medio 3g 5h) (11 PR mergiate in 30 g)

Descrizione

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.

Guida contributor