TypeScript trick: error handling — by @morita_ace on VOID | VOID