Improve annotations for Promise constructor.