Stop Wrapping Errors in TypeScript. Use `cause` Instead.
📰 Dev.to · Gabriel Anhaia
ES2022 gave JS a built-in way to chain errors. Most TypeScript codebases still ship custom wrap helpers. Here is the swap, with gotchas.
ES2022 gave JS a built-in way to chain errors. Most TypeScript codebases still ship custom wrap helpers. Here is the swap, with gotchas.