From 42ffcea96b84be8a230ea14bc03a272d9c63686c Mon Sep 17 00:00:00 2001 From: Juan Carlos Picado Date: Sun, 4 Dec 2016 21:03:41 +0100 Subject: [PATCH] Fix test methods --- memoizee/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/memoizee/index.d.ts b/memoizee/index.d.ts index 5d6fc049ad..be984e3575 100644 --- a/memoizee/index.d.ts +++ b/memoizee/index.d.ts @@ -21,10 +21,10 @@ interface IMemoizeeOptions { max?: number, preFetch?: number, promise?: boolean, - dispose?: ()=> void, + dispose?: (value: any) => void, async?: boolean, primitive?: boolean, - normalizer?:()=> void, + normalizer?:(value:any ) => void, resolvers?: RevolversArray } @@ -34,8 +34,8 @@ interface IMemoizeeOptions { * @extends {Function} */ interface IMemoizee extends Function { - delete: () => void, - clear: () => void + delete: (...params: any[]) => void, + clear: (...params: any[]) => void } /** @@ -44,6 +44,6 @@ interface IMemoizee extends Function { * @param {IMemoizeeOptions} [options] * @returns {IMemoizee} */ -declare function memoizee(f: () => void, options?: IMemoizeeOptions): IMemoizee; +declare function memoizee(f: Function, options?: IMemoizeeOptions): IMemoizee; export = memoizee;