-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript error #92
Comments
May be the right way is declare const memoize : (
limit?: number,
... or even export default function memoize(
limit?: number,
equals?: (a: any, b: any) => boolean,
deepObjects?: boolean
) => <T extends Function>(func: T) => T; |
Any update on this? |
@KhodeN is right on, this type definition is working fine for me: declare module "lru-memoize" {
function Memoizer(
limit?: number,
equals?: (a: any, b: any) => boolean,
deepObjects?: boolean
): <T extends (...args: any[]) => any>(func: T) => (...funcArgs: Parameters<T>) => ReturnType<T>;
export default Memoizer;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting today, apparently with the release of v1.1.0, we started getting the following error when running TS compilation on our project that uses lru-memoize:
Our
tsconfig.json
looks like this:Any ideas what we're doing wrong? When I downgrade to version 1.0.2 of lru-memoize everything works.
The text was updated successfully, but these errors were encountered: