結果 : typescript check if type is function