From 54d7d01bfc71adde20b2ad1e965f2428dd3ff248 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sun, 25 Sep 2022 16:00:41 -0400 Subject: [PATCH] fix(step 3) --- src/steps/three.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/steps/three.ts b/src/steps/three.ts index e76253a..05e563c 100644 --- a/src/steps/three.ts +++ b/src/steps/three.ts @@ -6,7 +6,10 @@ const adder = overload([ throw new TypeError('Can only add numbers') }, (x: string, y: string) => 'Yay' + x + y -]) +] as const) console.log(adder(1, 2)) console.log(adder('a', 'b')) +//@ts-expect-error +console.log(adder(3n, 4n)) +