結果 : how to make function parameter optional in typescript