結果 : make method optional in interface typescript