From c1ea67d097dabbadbbbdbdaa750b911ce82250bc Mon Sep 17 00:00:00 2001 From: Alan Thai Date: Tue, 7 Mar 2017 12:27:45 -0500 Subject: [PATCH] @types/ramda aperture incorrect type signature The `list` argument should be `T[]` instead of `T`. --- ramda/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ramda/index.d.ts b/ramda/index.d.ts index 114ba38d6d..3e79c3cd4c 100644 --- a/ramda/index.d.ts +++ b/ramda/index.d.ts @@ -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(n: number, list: T): T[][]; - aperture(n: number): (list: T) => T[][]; + aperture(n: number, list: T[]): T[][]; + aperture(n: number): (list: T[]) => T[][]; /** * Returns a new list containing the contents of the given list, followed by the given element.