diff --git a/src/index.d.ts b/src/index.d.ts index f312aec8a0..bf503cb617 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -303,7 +303,10 @@ declare namespace RamdaAdjunct { /** * Returns the result of concatenating the given lists or strings. */ - concatRight|string>(firstList: T, secondList: T): T; + concatRight>(firstList: T, secondList: T): T; + concatRight>(firstList: T): (secondList: T) => T; + concatRight(firstList: string, secondList: string): string; + concatRight(firstList: string): (secondList: string) => string; /** * Acts as multiple path: arrays of paths in, array of values out. Preserves order. @@ -316,6 +319,7 @@ declare namespace RamdaAdjunct { * the Apply spec of fantasy land. */ liftFN(arity: number, fn: Variadic, T>): Apply; + liftFN(arity: number): (fn: Variadic, T>) => Apply; /** * "lifts" a function of arity > 1 so that it may "map over" objects that satisfy @@ -543,6 +547,7 @@ declare namespace RamdaAdjunct { * Dispatches to the slice method of the third argument, if present. */ sliceFrom(fromIndex: number, list: string|Array): string|Array; + sliceFrom(fromIndex: number): (list: string|Array) => string|Array; /** * Returns the elements of the given list or string (or object with a slice method) @@ -550,6 +555,7 @@ declare namespace RamdaAdjunct { * Dispatches to the slice method of the second argument, if present. */ sliceTo(toIndex: number, list: string|Array): string|Array; + sliceTo(toIndex: number): (list: string|Array) => string|Array; /** * Identity type.