Removing a Type Assertion with Object.assign
Summary
The article explains using Object.assign to replace a TypeScript type assertion by crafting a real Response with a custom json method. It covers how Object.assign returns an intersection type, why this enables safe typing without as casts, and compares to spread, including runtime vs. type behavior.