Kyle

Results 7 comments of Kyle

Made a commit on my fork to resolve the edits I made to package.json before publishing the package to be used until this is merged 👍

@kvenn I've tried my hand at an eslint plugin: https://github.com/Kashuab/eslint-plugin-checked-exceptions/tree/main It introduces two rules: - `uncaught-errors` Checks to see if a function you're calling has a `@throws` JSDoc annotation. If...

I wonder if a simple util function could suffice. ```ts function attempt(cb: () => T, ...errors: E[]): [T | null, E | null] { let error: E | null =...

My example wasn't meant to be perfect. It was just an idea on how to accomplish some way of better error handling. I've since improved the approach and implemented a...

I'd like to re-plug a [library I put together](https://github.com/Kashuab/ts-throws), since it's more refined than the examples I posted before. It lets you wrap a given function with enforced error catching,...

> i would highly discourage leveraging on `throw` to try mimic Go/Rust way of handling errors because each throw has a massive performance impact and this can easily get out...

Need this in order to record sessions for failed tests in my CI pipeline.