Details
This is a known regression, which originates from #43868
Instance of memoize module lacks correct typings for cache property. Methods of cache (get, set, etc.) have key parameter typed as unknown.
Steps to reproduce
- Create an instance of
memoize by calling memoize method
- Check the typings of
cache property methods on the instance
Expected behaviour
key argument in cache methods matches arguments of memoized function
Actual behaviour
key argument is set to unknown
