Closed moltar closed 4 years ago
const getClient = pMemoize(function getClient(id: number) { return client.getClient(id) }) // > error here < pMemoize.clear(getClient)
Argument of type '(id: number) => Promise<Client>' is not assignable to parameter of type '(...arguments: unknown[]) => unknown'. Types of parameters 'id' and 'arguments' are incompatible. Type 'unknown' is not assignable to type 'number'.
Thanks
Does it work if you change (...arguments: unknown[]) to (...arguments: any[])?
(...arguments: unknown[])
(...arguments: any[])
Yup, it does! :) And that was the quickest reply I've ever had on GH, I think 😁
Shaa-weet. Thank you 🙏
Thanks