結果 : typescript pass function as parameter to another function