fix(step 3)

This commit is contained in:
Glen Whitney 2022-09-25 16:00:41 -04:00
parent b15035bfe6
commit 54d7d01bfc

View File

@ -6,7 +6,10 @@ const adder = overload([
throw new TypeError('Can only add numbers') throw new TypeError('Can only add numbers')
}, },
(x: string, y: string) => 'Yay' + x + y (x: string, y: string) => 'Yay' + x + y
]) ] as const)
console.log(adder(1, 2)) console.log(adder(1, 2))
console.log(adder('a', 'b')) console.log(adder('a', 'b'))
//@ts-expect-error
console.log(adder(3n, 4n))