How to fix Expected at least 1 argument, but got 0 in TypeScript | DevErrors