"Maybe Error" pattern in Typescript
TL;DR?
Inspiration
So one of the things I've liked about working with Go is that you use multiple return values a lot, with early exits that work as a kind of guard:
func GetUserFromAuth(name string, auth Auth) (error, User) {