Skip to content

Commit 9738af1

Browse files
[ramda] ran dprint fmt
1 parent 77fd45a commit 9738af1

235 files changed

Lines changed: 784 additions & 774 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

types/ramda/test/F-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
// $ExpectType false
55
R.F();
66

@@ -9,4 +9,4 @@ import * as R from 'ramda';
99

1010
// $ExpectType false
1111
R.F(true);
12-
};
12+
});

types/ramda/test/T-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
// $ExpectType true
55
R.T();
66

@@ -9,4 +9,4 @@ import * as R from 'ramda';
99

1010
// $ExpectType true
1111
R.T(true, false);
12-
};
12+
});

types/ramda/test/add-tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
// $ExpectType number
55
R.add(2, 3); // => 5
66
// $ExpectType number
77
R.add(7)(10); // => 17
8-
};
8+
});
99

10-
() => {
10+
(() => {
1111
// cannot add anything other than two numbers
1212

1313
// @ts-expect-error
1414
R.add('foo', 'bar');
1515
// @ts-expect-error
1616
R.add('foo')('bar');
17-
};
17+
});

types/ramda/test/addIndex-tests.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Rectangle {
1111
}
1212
}
1313

14-
() => {
14+
(() => {
1515
const filterIndexed = R.addIndex<number>(R.filter);
1616

1717
function lastTwo(_val: number, idx: number, list: number[]) {
@@ -20,9 +20,9 @@ class Rectangle {
2020

2121
// $ExpectType number[]
2222
filterIndexed(lastTwo, [8, 6, 7, 5, 3, 0, 9]); // => [0, 9]
23-
};
23+
});
2424

25-
() => {
25+
(() => {
2626
function lastTwo(_val: number, idx: number, list: number[]) {
2727
return list.length - idx <= 2;
2828
}
@@ -33,18 +33,18 @@ class Rectangle {
3333
filterIndexed(lastTwo, [8, 6, 7, 5, 3, 0, 9]); // => [0, 9]
3434
const lastTwoFn = filterIndexed(lastTwo);
3535
lastTwoFn([8, 6, 7, 5, 3, 0, 9]);
36-
};
36+
});
3737

38-
() => {
38+
(() => {
3939
function plusFive(num: number, idx: number, list: number[]) {
4040
list[idx] = num + 5;
4141
}
4242

4343
// $ExpectType number[]
4444
R.addIndex<number>(R.forEach)(plusFive)([1, 2, 3]); // => [6, 7, 8]
45-
};
45+
});
4646

47-
() => {
47+
(() => {
4848
function squareEnds(elt: number, idx: number, list: number[]) {
4949
if (idx === 0 || idx === list.length - 1) {
5050
return elt * elt;
@@ -56,9 +56,9 @@ class Rectangle {
5656
R.addIndex<number>(R.map)(squareEnds, [8, 5, 3, 0, 9]); // => [64, 5, 3, 0, 81]
5757
// $ExpectType number[]
5858
R.addIndex<number>(R.map)(squareEnds)([8, 5, 3, 0, 9]); // => [64, 5, 3, 0, 81]
59-
};
59+
});
6060

61-
() => {
61+
(() => {
6262
const reduceIndexed = R.addIndex<string, { [elem: string]: number }>(R.reduce);
6363
const letters = ['a', 'b', 'c'];
6464

@@ -73,9 +73,9 @@ class Rectangle {
7373
reduceIndexed(objectify)({}, letters); // => { 'a': 0, 'b': 1, 'c': 2 }
7474
// $ExpectType { [elem: string]: number; }
7575
reduceIndexed(objectify, {})(letters); // => { 'a': 0, 'b': 1, 'c': 2 }
76-
};
76+
});
7777

78-
() => {
78+
(() => {
7979
function lastTwo(_val: number, idx: number, list: number[]) {
8080
return list.length - idx <= 2;
8181
}
@@ -85,9 +85,9 @@ class Rectangle {
8585
rejectIndexed(lastTwo, [8, 6, 7, 5, 3, 0, 9]); // => [8, 6, 7, 5, 3]
8686
// $ExpectType number[]
8787
rejectIndexed(lastTwo)([8, 6, 7, 5, 3, 0, 9]); // => [8, 6, 7, 5, 3]
88-
};
88+
});
8989

90-
() => {
90+
(() => {
9191
const mapIndexed = R.addIndex<string, string>(R.map);
9292
mapIndexed((val: string, idx: number) => `${idx}-${val}`)(['f', 'o', 'o', 'b', 'a', 'r']);
9393
// => ['0-f', '1-o', '2-o', '3-b', '4-a', '5-r']
@@ -98,9 +98,9 @@ class Rectangle {
9898
[new Rectangle(1, 2), new Rectangle(4, 7)],
9999
);
100100
// => [2, 56]
101-
};
101+
});
102102

103-
() => {
103+
(() => {
104104
const reduceIndexed = R.addIndex<string, string>(R.reduce);
105105
// $ExpectType string
106106
reduceIndexed((acc: string, val: string, idx: number) => `${acc},${idx}-${val}`, '', [
@@ -112,4 +112,4 @@ class Rectangle {
112112
'r',
113113
]);
114114
// => ['0-f,1-o,2-o,3-b,4-a,5-r']
115-
};
115+
});

types/ramda/test/all-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
const lessThan2 = R.flip(R.lt)(2);
55
const lessThan3 = R.flip(R.lt)(3);
66

@@ -10,4 +10,4 @@ import * as R from 'ramda';
1010
R.all(lessThan2)([1, 2]); // => false
1111
// $ExpectType boolean
1212
R.all(lessThan3)([1, 2]); // => true
13-
};
13+
});

types/ramda/test/allPass-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
type Predicate = (x: number) => boolean;
55

66
function gt10(x: number) {
@@ -44,4 +44,4 @@ import * as R from 'ramda';
4444
// $ExpectType string
4545
foobar.bar;
4646
}
47-
};
47+
});

types/ramda/test/always-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
// $ExpectType (...args: unknown[]) => string
55
const alwaysTea = R.always('Tea');
66
// $ExpectType string
@@ -11,4 +11,4 @@ import * as R from 'ramda';
1111

1212
// $ExpectType string
1313
alwaysTea(1, 2, 3); // => 'Tea'
14-
};
14+
});

types/ramda/test/and-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
const x0: boolean = R.and(false, true); // => false
55
const x1: number | unknown[] = R.and(0, []); // => 0
66
const x2: number | unknown[] = R.and(0)([]); // => 0
77
const x3: string | null = R.and(null, ''); // => null
8-
};
8+
});

types/ramda/test/any-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
const lessThan0 = R.flip(R.lt)(0);
55
const lessThan2 = R.flip(R.lt)(2);
66
R.any(lessThan0)([1, 2]); // => false
77
R.any(lessThan2)([1, 2]); // => true
8-
};
8+
});

types/ramda/test/anyPass-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as R from 'ramda';
22

3-
() => {
3+
(() => {
44
type Predicate = (x: number) => boolean;
55

66
function gt10(x: number) {
@@ -45,4 +45,4 @@ import * as R from 'ramda';
4545
// @ts-expect-error
4646
foobar.bar;
4747
}
48-
};
48+
});

0 commit comments

Comments
 (0)