1 comment

[ 5.0 ms ] story [ 9.4 ms ] thread
Basically we can use the error-returning pattern from Go in typescript for great good. And since typescript has more expressive type checking, we can accomplish it without polluting the namespace with err1, err2, err3... Best of both worlds.