My Learning Curve

Feed / Total TypeScript

When 'as never' Is The Only Thing That Works (article)

Monday, February 5, 2024

In TypeScript, the `as never` type assertion is occasionally needed when dealing with unions of functions with incompatible parameter types.

Read original article ↗