Details
This is a known regression, which originates from #43868
memoize module lacks correct typings for transformKey option when called with constructables (entities which are initialized with new keyword).
Steps to reproduce
- Wrap constructable (some class for example) with
memoize method
- Pass configuration (second argument) with
transformKey callback
- Check the typings of
transformKey callback's arguments
Expected behaviour
transformKey arguments match constructor's arguments
Actual behaviour
transformKey arguments are typed as readonly [] (empty tuple)
