@types/ramda aperture incorrect type signature

The `list` argument should be `T[]` instead of `T`.
This commit is contained in:
Alan Thai 2017-03-07 12:27:45 -05:00 committed by GitHub
parent ac8fb9a68d
commit c1ea67d097

4
ramda/index.d.ts vendored
View File

@ -185,8 +185,8 @@ declare namespace R {
* Returns a new list, composed of n-tuples of consecutive elements If n is greater than the length of the list,
* an empty list is returned.
*/
aperture<T>(n: number, list: T): T[][];
aperture(n: number): <T>(list: T) => T[][];
aperture<T>(n: number, list: T[]): T[][];
aperture(n: number): <T>(list: T[]) => T[][];
/**
* Returns a new list containing the contents of the given list, followed by the given element.