From a59e018942e8581e3e582a1c31b1dd061956f924 Mon Sep 17 00:00:00 2001 From: Gabriel Hall Date: Mon, 22 Jan 2024 10:19:16 -0500 Subject: [PATCH] add type annotations to fib file --- src/fib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fib.ts b/src/fib.ts index 0d292e9..56e8d40 100644 --- a/src/fib.ts +++ b/src/fib.ts @@ -1,5 +1,5 @@ // util function that computes the fibonacci numbers -export default function fibonacci(n) { +export default function fibonacci(n: number): number { if (n < 0) { return -1; } else if (n == 0) {