From 011d7c0a4cdabf2345ccf3e09d1b70f0c63c8a3d Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Tue, 27 Oct 2015 21:41:30 +0500 Subject: [PATCH] lodash: compile error in _.partial fixed --- lodash/lodash.d.ts | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index d143f4e65..f4690176d 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -6494,11 +6494,22 @@ declare module _ { } type PH = LoDashStatic; - type Function0 = () => R; - type Function1 = (t1: T1) => R; - type Function2 = (t1: T1, t2: T2) => R; - type Function3 = (t1: T1, t2: T2, t3: T3) => R; - type Function4 = (t1: T1, t2: T2, t3: T3, t4: T4) => R; + + interface Function0 { + (): R; + } + interface Function1 { + (t1: T1): R; + } + interface Function2 { + (t1: T1, t2: T2): R; + } + interface Function3 { + (t1: T1, t2: T2, t3: T3): R; + } + interface Function4 { + (t1: T1, t2: T2, t3: T3, t4: T4): R; + } interface Partial { // arity 0