Changed reject to be 'any' per angular docs