type-fest icon indicating copy to clipboard operation
type-fest copied to clipboard

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

Open ajvincent opened this issue 5 months ago • 1 comments

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.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

ajvincent avatar Mar 07 '24 15:03 ajvincent

Ditto for getters on a class.

ajvincent avatar Mar 07 '24 15:03 ajvincent