Ole
Ole
DDeno
Created by Ole on 6/20/2024 in #help
Ensure error is of type unknown with Deno lint
I'm having an interesting issue in a catch (error) { block. The issue is resolved when I change it to error: unknown, as I then get a type error in the function I call later. When the error is any, I get no warning, and I'm quite sure I'll forget to manually add : unknown to all my errors, so I'm looking for a way to guard for this 🤔
4 replies