type-flag
type-flag copied to clipboard
investigate using `const` Type Paramaeters
TypeScript 5 added const
Type Parameters, which I think can help with simplifying the inference logic:
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#const-type-parameters