From f03183055bc6de4e33bfdfa30286fa27e834484a Mon Sep 17 00:00:00 2001 From: Loosetooth Date: Sat, 1 Feb 2025 23:15:40 +0100 Subject: [PATCH] remove any type --- 5kyu/a-chain-adding-function/solution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5kyu/a-chain-adding-function/solution.ts b/5kyu/a-chain-adding-function/solution.ts index 9ddc007..56b8e5b 100644 --- a/5kyu/a-chain-adding-function/solution.ts +++ b/5kyu/a-chain-adding-function/solution.ts @@ -1,5 +1,5 @@ -export default function add(x: number): any { +export default function add(x: number) { const sum = (y: number): any => add(x + y); // set .valueOf to return the current sum when the object is coerced to a primitive // for example, when it is compared to a number