How to fix This expression is not callable in TypeScript | DevErrors