Closed Yupeng-li closed 2 years ago
What version of TS are you using? Can you put together a project that shows this happening?
If you really are on a TS version of 4.1 or earlier: yes, the old TS types do not support the new memoizeOptions
field. Those types were incredibly long and copy-pasted, and there's no possible way we could have updated them. Please update to a newer version of TS, which will cause the current typedefs to be used.
Hi @markerikson,
Thank you for the quick reply. Yes, we are using typescript 4.1.6. I'll see if we can use the newer version of TS.
Hi,
I got
TS2769: No overload matches this call
when I followed this example in docs.The type defined in this file
./src/typesVersions/ts4.1/index.d.ts
doesn't supportmemoizeOptions
Am I missing something or does it need to be fixed?
Thank you