Comment
Comment by vhakulinen
Regarding the error handling case, I've played around with the idea of implementing a Result type with typescript and hiding the errors behind that. The end result looks something like this
You can read the details from here: https://thingsthatkeepmeupatnight.dev/posts/simple-typescrip...