How to fix Expected 0 arguments, but got 1 in TypeScript | DevErrors