Use more precise type annotation for promise.

Change-Id: Ia56e52a9e1717d17a09bd224254a9c35131f47ee