How to fix Rest parameter cannot have initializer in TypeScript | DevErrors