Closed nelson6e65 closed 9 months ago
Ah, I remember that type problem, @joelalejandro . That's why I used +
. You can use:
Number.parseInt(`${error.status}`, 10)
Nah, haha, this was a readability change, I'd rather keep the + in that case. Reverting that last commit.
Regardless of Error instance has
status
property as string, convert it to number forres.status()
.Fixes #369