Differences between two TypeScript error class styles - Effect Community