const modifiers make generics a LOT easier
const modifiers for type parameters are coming to TypeScript 5.0! The PR's not even merged yet - but you can already start playing with it. Andarist's tweet: https://twitter.com/AndaristRake/status/1602701606721814528 The PR: https://github.com/microsoft/TypeScript/pull/51865 Become a TypeScript Wizard with Matt's TypeScript Course: https://www.totaltypescript.com/ Follow Matt on Twitter: https://twitter.com/mattpocockuk