mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
jslint compliance
This commit is contained in:
Vendored
+2
-2
@@ -1468,8 +1468,8 @@ declare namespace R {
|
||||
/**
|
||||
* Sorts a list according to a list of comparators.
|
||||
*/
|
||||
sortWith<T>(fns: ((a: T, b: T) => number)[], list: T[]): T[];
|
||||
sortWith<T>(fns: ((a: T, b: T) => number)[]): (list: T[]) => T[];
|
||||
sortWith<T>(fns: Array<((a: T, b: T) => number)>, list: T[]): T[];
|
||||
sortWith<T>(fns: Array<((a: T, b: T) => number)>): (list: T[]) => T[];
|
||||
|
||||
/**
|
||||
* Splits a string into an array of strings based on the given
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user