mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
flipped order of args in adjust
This commit is contained in:
4
types/ramda/index.d.ts
vendored
4
types/ramda/index.d.ts
vendored
@@ -473,8 +473,8 @@ declare namespace R {
|
||||
* Applies a function to the value at the given index of an array, returning a new copy of the array with the
|
||||
* element at the given index replaced with the result of the function application.
|
||||
*/
|
||||
adjust<T>(fn: (a: T) => T, index: number, list: ReadonlyArray<T>): T[];
|
||||
adjust<T>(fn: (a: T) => T, index: number): (list: ReadonlyArray<T>) => T[];
|
||||
adjust<T>(index: number, fn: (a: T) => T, list: ReadonlyArray<T>): T[];
|
||||
adjust<T>(index: number, fn: (a: T) => T): (list: ReadonlyArray<T>) => T[];
|
||||
|
||||
/**
|
||||
* Returns true if all elements of the list match the predicate, false if there are any that don't.
|
||||
|
||||
Reference in New Issue
Block a user