diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 1a1f2ef68..bb4f464a7 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -667,7 +667,7 @@ result = _.curry(function (a: any, b: any, c: any) { console.log(a + b + c); }); -result = <_.LoDashObjectWrapper>_(function (a, b, c) { +result = <_.LoDashObjectWrapper>_(function (a: any, b: any, c: any) { console.log(a + b + c); }).curry(); @@ -694,7 +694,7 @@ source.addEventListener('message', <_.LoDashObjectWrapper>_(function ( 'maxWait': 1000 }), false); -var returnedDebounce = _.throttle(function (a) { return a * 5; }, 5); +var returnedDebounce = _.throttle(function (a: any) { return a * 5; }, 5); returnedThrottled(4); result = _.defer(function () { console.log('deferred'); }); @@ -704,7 +704,7 @@ var log = _.bind(console.log, console); result = _.delay(log, 1000, 'logged later'); result = <_.LoDashWrapper>_(log).delay(1000, 'logged later'); -var fibonacci = _.memoize(function (n) { +var fibonacci = _.memoize(function (n: any) { return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2); }); @@ -716,13 +716,13 @@ var data: { [index: string]: { name: string; age: number; } } = { var stooge = _.memoize(function (name: string) { return data[name]; }, _.identity); stooge('curly'); -var returnedMemoize = _.throttle(function (a) { return a * 5; }, 5); +var returnedMemoize = _.throttle(function (a: any) { return a * 5; }, 5); returnedMemoize(4); var initialize = _.once(function () { }); initialize(); initialize();'' -var returnedOnce = _.throttle(function (a) { return a * 5; }, 5); +var returnedOnce = _.throttle(function (a: any) { return a * 5; }, 5); returnedOnce(4); var greetPartial = function (greeting: string, name: string) { return greeting + ' ' + name; }; @@ -745,7 +745,7 @@ jQuery('.interactive').on('click', _.throttle(function () { }, 300000, { 'trailing': false })); -var returnedThrottled = _.throttle(function (a) { return a * 5; }, 5); +var returnedThrottled = _.throttle(function (a: any) { return a * 5; }, 5); returnedThrottled(4); var helloWrap = function (name: string) { return 'hello ' + name; };