From 644f9e560d3c3c89917fd11740cac3d17732ed5e Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 1 Jun 2017 14:42:15 +0200 Subject: [PATCH] Update index.d.ts fixed curry right --- types/lodash/index.d.ts | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index b8ae248190..198bc528fd 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -10331,6 +10331,36 @@ declare namespace _ { (t1: T1, t2: T2, t3: T3, t4: T4): CurriedFunction1; (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5): R; } + interface RightCurriedFunction1{ + ():RightCurriedFunction1 + (t1:T1):R + } + interface RightCurriedFunction2{ + ():RightCurriedFunction2 + (t2:T2):RightCurriedFunction1 + (t1:T1,t2:T2):R + } + interface RightCurriedFunction3{ + ():RightCurriedFunction3 + (t3:T3):RightCurriedFunction2 + (t2:T2,t3:T3):RightCurriedFunction1 + (t1:T1,t2:T2,t3:T3):R + } + interface RightCurriedFunction4{ + ():RightCurriedFunction4 + (t4:T4):RightCurriedFunction3 + (t3:T3,t4:T4):RightCurriedFunction2 + (t2:T2,t3:T3,t4:T4):RightCurriedFunction1 + (t1:T1,t2:T2,t3:T3,t4:T4):R + } + interface RightCurriedFunction5{ + ():RightCurriedFunction5 + (t5:T5):RightCurriedFunction4 + (t4:T4,t5:T5):RightCurriedFunction3 + (t3:T3,t4:T4,t5:T5):RightCurriedFunction2 + (t2:T2,t3:T3,t4:T4,t5:T5):RightCurriedFunction1 + (t1:T1,t2:T2,t3:T3,t4:T4,t5:T5):R + } interface LoDashImplicitObjectWrapper { /** @@ -10348,7 +10378,7 @@ declare namespace _ { * @return Returns the new curried function. */ curryRight(func: (t1: T1) => R): - CurriedFunction1; + RightCurriedFunction1; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. @@ -10356,7 +10386,7 @@ declare namespace _ { * @return Returns the new curried function. */ curryRight(func: (t1: T1, t2: T2) => R): - CurriedFunction2; + RightCurriedFunction2; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. @@ -10364,7 +10394,7 @@ declare namespace _ { * @return Returns the new curried function. */ curryRight(func: (t1: T1, t2: T2, t3: T3) => R): - CurriedFunction3; + RightCurriedFunction3; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. @@ -10372,7 +10402,7 @@ declare namespace _ { * @return Returns the new curried function. */ curryRight(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R): - CurriedFunction4; + RightCurriedFunction4; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. @@ -10380,7 +10410,7 @@ declare namespace _ { * @return Returns the new curried function. */ curryRight(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R): - CurriedFunction5; + RightCurriedFunction5; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial.