From 33d52686cca65e60bd17b8843fa5f7553605d5c8 Mon Sep 17 00:00:00 2001 From: Alejandro Haro Date: Fri, 16 Jun 2017 09:46:49 +0100 Subject: [PATCH] jslint compliance --- types/ramda/index.d.ts | 4 ++-- types/ramda/ramda-tests.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 974fffab31..ba6908d57c 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1468,8 +1468,8 @@ declare namespace R { /** * Sorts a list according to a list of comparators. */ - sortWith(fns: ((a: T, b: T) => number)[], list: T[]): T[]; - sortWith(fns: ((a: T, b: T) => number)[]): (list: T[]) => T[]; + sortWith(fns: Array<((a: T, b: T) => number)>, list: T[]): T[]; + sortWith(fns: Array<((a: T, b: T) => number)>): (list: T[]) => T[]; /** * Splits a string into an array of strings based on the given diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 49f008fece..70298f53e6 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -1639,11 +1639,11 @@ class Rectangle { () => { let people = [ - {name: 'Agy', age:33}, {name: 'Bib', age: 15}, {name: 'Cari', age: 16} + {name: 'Agy', age: 33}, {name: 'Bib', age: 15}, {name: 'Cari', age: 16} ]; R.sortWith([R.ascend(R.prop('age')), R.descend(R.prop('name'))], people); -} +}; () => { function add(a: number, b: number) {