From 7f56c5b7ab8732a9b9e81abc788881425dd63d8e Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 7 Apr 2020 11:49:16 -0400 Subject: [PATCH] add the two argument curried version of updateIn --- types/updateIn.d.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/types/updateIn.d.ts b/types/updateIn.d.ts index 62c3be1..af9edc3 100644 --- a/types/updateIn.d.ts +++ b/types/updateIn.d.ts @@ -1,12 +1,11 @@ import { Path } from './types'; export declare function updateIn(path: Path, value: any, object: any): any; -interface Curry2 { - (value: any, object: any): any; - (value: any): (object: any) => any; -} -interface CurriedUpdateIn { - (path: Path, value: any, object: any): any; - (path: Path): Curry2; -} -declare const _default: CurriedUpdateIn; +declare const _default: { + (a: any): { + (a: any): (a: any) => any; + (a: any, b: any): any; + }; + (a: any, b: any): (a: any) => any; + (a: any, b: any, c: any): any; +}; export default _default;