Added return types to promises