How to fix Template literal type produces union that is too complex in TypeScript | DevErrors