Fix weak typed generic Promise to be strong typed.