correct typing error in angular request