This website collects cookies to deliver better user experience

Constraining literal types with generics in TypeScript