Hey all, I just released v1.0.0 of my error handling library ts-error-tuple (https://github.com/adamhl8/ts-error-tuple). Now you can add arbitrary context data to your errors.
If prefer the error handling approach where errors are values, this helps you achieve that.