Skip to content

Commit aea2275

Browse files
committed
Use unknown instead of any
1 parent d4c92aa commit aea2275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ts/Part2Ex4FP.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ You can find this as Fun.constant in katamari.
138138
One way of writing it is below:
139139
*/
140140

141-
const constant = <A> (a: A) => (...args: any[]): A => a;
141+
const constant = <A> (a: A) => (...args: unknown[]): A => a;
142142

143143
const always3 = constant(3);
144144

0 commit comments

Comments
 (0)