結果 : typescript wrap function in promise