Infer actual type of memoized function to enhance selector type
Infer actual type of memoized function to enhance selector type

This allows correct inference of any fields that the memoize
function may attach to its generated output function, such as
`selector.memoizedResultFunc.clearCache` with `defaultMemoize`.

rackt/reselect