結果 : typescript function can throw error