結果 : implement function interface typescript