From 7eadcd7bb05d7619a89f492d80bf4d1c68a27823 Mon Sep 17 00:00:00 2001 From: Slavo Vojacek Date: Mon, 6 Jul 2015 09:50:54 +0100 Subject: [PATCH 1/2] Update lodash.d.ts Not really sure why some functions are not here at all, but I needed this one (_.fill) in one of my projects so contributing back. --- lodash/lodash.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index b4eaf7509..a0223e9e0 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2494,6 +2494,25 @@ declare module _ { collection: Dictionary, whereValue: W): boolean; } + + interface LoDashStatic { + /** + * Fills elements of array with value from start up to, but not including, end. + * + * Note: This method mutates array. + * + * @param array (Array): The array to fill. + * @param value (*): The value to fill array with. + * @param [start=0] (number): The start position. + * @param [end=array.length] (number): The end position. + * @return (Array): Returns array. + **/ + fill( + array: Array, + value: any, + start?: number, + end?: number): T; + } //_.filter interface LoDashStatic { From 72bd5e2a679da7593d1bd19884610317203f238a Mon Sep 17 00:00:00 2001 From: Slavo Vojacek Date: Mon, 6 Jul 2015 10:02:25 +0100 Subject: [PATCH 2/2] Update lodash.d.ts --- lodash/lodash.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index a0223e9e0..3723f497d 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2508,10 +2508,10 @@ declare module _ { * @return (Array): Returns array. **/ fill( - array: Array, + array: Array, value: any, start?: number, - end?: number): T; + end?: number): Array; } //_.filter