mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
lodash: compile error in _.partial fixed
This commit is contained in:
Vendored
+16
-5
@@ -6494,11 +6494,22 @@ declare module _ {
|
||||
}
|
||||
|
||||
type PH = LoDashStatic;
|
||||
type Function0<R> = () => R;
|
||||
type Function1<T1, R> = (t1: T1) => R;
|
||||
type Function2<T1, T2, R> = (t1: T1, t2: T2) => R;
|
||||
type Function3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R;
|
||||
type Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R;
|
||||
|
||||
interface Function0<R> {
|
||||
(): R;
|
||||
}
|
||||
interface Function1<T1, R> {
|
||||
(t1: T1): R;
|
||||
}
|
||||
interface Function2<T1, T2, R> {
|
||||
(t1: T1, t2: T2): R;
|
||||
}
|
||||
interface Function3<T1, T2, T3, R> {
|
||||
(t1: T1, t2: T2, t3: T3): R;
|
||||
}
|
||||
interface Function4<T1, T2, T3, T4, R> {
|
||||
(t1: T1, t2: T2, t3: T3, t4: T4): R;
|
||||
}
|
||||
|
||||
interface Partial {
|
||||
// arity 0
|
||||
|
||||
Reference in New Issue
Block a user