結果 : typescript set function as type