mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
fixed ramda type inference errors (#24942)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
f6c0808e26
commit
ed2cf925b3
8
types/ramda/index.d.ts
vendored
8
types/ramda/index.d.ts
vendored
@@ -16,6 +16,7 @@
|
||||
// Nikita Moshensky <https://github.com/moshensky>
|
||||
// Ethan Resnick <https://github.com/ethanresnick>
|
||||
// Jack Leigh <https://github.com/leighman>
|
||||
// Keagan McClelland <https://github.com/CaptJakk>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
@@ -951,10 +952,11 @@ declare namespace R {
|
||||
* Returns a new list, constructed by applying the supplied function to every element of the supplied list.
|
||||
*/
|
||||
map<T, U>(fn: (x: T) => U, list: ReadonlyArray<T>): U[];
|
||||
map<T, U>(fn: (x: T) => U, obj: Functor<T>): Functor<U>; // used in functors
|
||||
map<T, U>(fn: (x: T) => U): (list: ReadonlyArray<T>) => U[];
|
||||
map<T extends object, U extends {[P in keyof T]: U[P]}>(fn: (x: T[keyof T]) => U[keyof T], obj: T): U;
|
||||
map<T extends object, U extends {[P in keyof T]: U[P]}>(fn: (x: T[keyof T]) => U[keyof T]): (obj: T) => U;
|
||||
map<T, U>(fn: (x: T[keyof T & keyof U]) => U[keyof T & keyof U], list: T): U;
|
||||
map<T, U>(fn: (x: T[keyof T & keyof U]) => U[keyof T & keyof U]): (list: T) => U;
|
||||
map<T, U>(fn: (x: T) => U, obj: Functor<T>): Functor<U>; // used in functors
|
||||
map<T, U>(fn: (x: T) => U): (obj: Functor<T>) => Functor<U>; // used in functors
|
||||
|
||||
/**
|
||||
* The mapAccum function behaves like a combination of map and reduce.
|
||||
|
||||
Reference in New Issue
Block a user