From 215ed57080e399459b8dc4bc52fee1f58ac9608d Mon Sep 17 00:00:00 2001 From: dcrusader Date: Wed, 7 Jan 2015 10:12:52 -0800 Subject: [PATCH] Fix push & unshift to reflect underscore behavior --- underscore/underscore.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index c118e8020..f46173ff3 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -3271,9 +3271,9 @@ interface _Chain { /** * Adds one or more elements to the end of an array and returns the new length of the array. * @param item The elements to add to the end of the array. - * @return The new length property of the object upon which the method was called. + * @return The array with the element added to the end. **/ - push(...item: Array): _ChainSingle; + push(...item: Array): _Chain; /** * Reverses an array in place. The first array element becomes the last and the last becomes the first. @@ -3320,9 +3320,9 @@ interface _Chain { /** * Adds one or more elements to the beginning of an array and returns the new length of the array. * @param items The elements to add to the front of the array. - * @return The new length property of the object upon which the method was called. + * @return The array with the element added to the beginning. **/ - unshift(...items: Array): _ChainSingle; + unshift(...items: Array): _Chain; /********** * * Chaining *